Dyte-backend-task
Two Methods
Usage Mehtod-1
cd method-1
Start the project with `npm run dev` command.
After starting, open the http://localhost:3000/ URL in your browser.
Services
- api: API Gateway services
- webhooks: WEBHOOKS DB`.
Routes
Usage Mehtod-2
cd method-2
Create a file .env in the directory and add DB_URL and PORT number to it.
Start the project with `node server.js` command.
After starting, open the http://localhost:3000/ URL in your browser.
Services
- webhooks: WEBHOOKS DB`.
Routes
NPM scripts
npm run dev
: Start development mode (load all services locally with hot-reload & REPL)npm run start
: Start production mode (setSERVICES
env variable to load certain servicesnpm run dc:up
: Start the stack with Docker Composenpm run dc:down
: Stop the stack with Docker Compose