A Mimo Live Sales API for satellite apps that allows login, password reset via Cognito and the list of lives of the logged user.
- NodeJS for application
- (the specific version is in the
.tool-version
file)
- (the specific version is in the
- Docker for database
- Run the installation commands in the
terminal
:
npm install
- Create an
.env
file based on the.env.example
and ask someone on team for the necessary variable values.
- Link
/docs
: Open swagger to test API - POST
/auth/login
: To login - POST
/auth/recovery
: Request recovery password - POST
/auth/reset
: Reset password with code - GET
/lives
: List all lives of the logged user - POST
/contact
: Send message to mimo
- To run application
npm run start:dev
- To run tests
npm run test:dev
- To generate docs
npm run start:doc
- Run Test in application
npm run test
- Run Lint in application
npm run lint
- Build application
npm run build
- To run application after build
npm run start:prod
- To sync the Prisma with the database
npm run db:sync