-
Open terminal in Project Directory
-
Run
npm install
to install Project dependencies -
Setup
.env
file from.env.sample
-
Run
npm run start:dev
to start theGATEWAY
in development Environment OR -
Run
npm run start
to start theGATEWAY
service in production Environment -
- Open terminal in Service Directory [apps/<auth | user | post | comment>]
- Run
npm install
to install dependencies - Setup
.env
file from.env.sample
' - Run
npm run start:dev
to startSERVICE
in development Environment - Services can run as a standalone Application in Development Environment only...
- Provide
MODE="RUN_AS_APP"
in .env file
- Provide
- Run
npm run start
to startSERVICE
in production Environment - Once a service has been started, it will register itself to the Gateway with
- KEY
- VERSION
- PORT
-
npm run start -- <key> <version>
npm run start -- auth v2
- If not provided then Default Key and Version will be assigned from ENV
-
After Starting services, Every endpoint of each service can be accessed via Gateway, with
[gateway_url]/[service_key]/[service_version]/[path]