To install this project follow the steps bellow:
- Clone this project.
- Go to
admin
folder - Run
npm install
- Go to
backend
folder - Run
cp .env.example .env
to create .env file - Run
yarn install
to install the dependencies - Run
yarn docker:dev
to run the API in dev mode
- Run
npm run start
fromadmin
folder - Run
yarn docker:dev
frombackend
folder
backend/src
config/ # Environment variables and configuration related things
controllers/ # Route controllers (controller layer)
docs/ # Swagger files
middlewares/ # Custom express middlewares
models/ # Mongoose models (data layer)
routes/ # Routes
services/ # Business logic (service layer)
utils/ # Utility classes and functions
validations/ # Request data validation schemas
app.js # Express app
index.js # App entry point
To view the list of available APIs and their specifications, run the server and go to http://localhost:3000/v1/docs
in your browser. This documentation page is automatically generated using the swagger definitions written as comments in the route files.