/Dyte-Backend-Task

Dyte Backend Task

Primary LanguageJavaScript

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

alt text

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

alt text

NPM scripts

  • npm run dev: Start development mode (load all services locally with hot-reload & REPL)
  • npm run start: Start production mode (set SERVICES env variable to load certain services
  • npm run dc:up: Start the stack with Docker Compose
  • npm run dc:down: Stop the stack with Docker Compose