A simple but robust API Gateway written in TypeScript.
API Gateway is a developer friendly tool that sits at the heart of your microservices architecture and securely expose them through APIs using Nodejs.
Authentication(Auth0)Service RegistryService ManagementLoad BalancingAPI Health & PINGREST APILogging
- Clone the repository to your project root directory using this command: (replace
api-gatewaywith a folder name for the gateway)
git clone https://github.com/AdebsAlert/api-gateway.git api-gateway- CD into the gateway directory and install all dependencies:
cd api-gateway
npm install -g typescript
npm install- Create a .env file from the .env.example file and enter your key values
cp .env.example .env- Set your AUTH policy in your .env file and your policy params
AUTH_POLICY='auth0' or 'custom'- Build and start the API Gateway
npm run build-ts
npm run watch-serve