A progressive Node.js framework for building efficient and scalable server-side applications.
This is a minimal auction system. This system allows users to do the following:
- create an account
- login
- create an item
- publish an item (that will be available for bidding)
- bid on an item
For a more concise description of this system's api, please check the section on Documentation.
$ npm install
# JWT CONFIG
JWT_SECRET = <Your JWT secret>
JWT_MAXIMUM_AGE = < JWT token life >
# MONGODB CONFIG
MONGO_USERNAME = <Username of a user in the database>
MONGO_PASSWORD = <Password of the user>
MONGO_HOST = <Host provided by MongoDB Atlas or private host>
MONGO_URI=mongodb+srv://${MONGO_USERNAME}:${MONGO_PASSWORD}@${MONGO_HOST}/?retryWrites=true&w=majority
# Note: if you don't use MongoDB Atlas, you will use another MONGO_URI format.
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Documentation in this project is generated using Swagger. Please make sure to install the application and then run :
$ npm run start
To consult Swagger documentation, simply open this url on your browser: http://localhost:3000/api.
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.