Skip to content

API-200/api200-selfhosted

Repository files navigation

API 200 Self-hosted

This repository contains the necessary files and instructions to self-host the API 200 application.

What is API 200 ?

One Gateway for All Your Third-Party Services!

✔️ One-Click API Setup:

  • Auth
  • Caching
  • Retries
  • Mocking
  • Response transform
  • Fallback responses

✔️ Unified API Dashboard

✔️ In-browser Swagger integration

✔️ Import endpoints from OpenAPI and Postman

✔️ Logs

For more details check https://api200.co

Prerequisites

Before you begin, ensure you have the following installed on your system:

  • Docker
  • Docker Compose
  • Node.js
  • npm

Setup

  1. Clone the repository and install dependencies:
# Clone the repository
git clone https://github.com/API-200/api200-selfhosted

# Navigate to the project directory
cd api200-selfhosted

# Install dependencies
npm i
  1. Run the setup script:
# For localhost development (recommended to run with admin privileges):
sudo node setup.js

# For non-localhost deployment:
node setup.js

⚠️ Important Note for localhost development: When developing on localhost, the setup script needs to update your hosts file to add 127.0.0.1 kong. This requires root/administrator privileges. If you don't run the script with these privileges, you'll need to manually update your hosts file.

Starting the Services

After completing the setup, start the services with:

docker-compose up -d

Verifying the Installation

To check if all services are running correctly:

# View all running containers and their status
docker-compose ps

# Or using Docker directly
docker ps

Accessing the Application

Once all services are running, you can access:

  • API-200 Frontend: http://<your-hostname-or-ip>:3000
  • API-200 Api Handler: http://<your-hostname-or-ip>:8080