This repository contains the necessary files and instructions to self-host the API 200 application.
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
Before you begin, ensure you have the following installed on your system:
- Docker
- Docker Compose
- Node.js
- npm
- 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
- 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 add127.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.
After completing the setup, start the services with:
docker-compose up -d
To check if all services are running correctly:
# View all running containers and their status
docker-compose ps
# Or using Docker directly
docker ps
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