A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository. https://docs.nestjs.com/ documentation of the Nestjs
$ npm install
If the nestjs is not instelled on the computer
$ npm install -g @nestjs/cli
Be sure to check the version of "@nestjs/common" and "@nestjs/core". It should be "^8.0.0".
If version : "^9.0.0" is automatically installed: uninstall exit
$ npm uninstall @nestjs/common^9.0.0
$ npm uninstall @nestjs/core^9.0.0
And install version 8
$ npm install @nestjs/common^8.0.0
$ npm install @nestjs/core^8.0.0
bash https://docs.nestjs.com/recipes/prisma
bash mysql: https://drive.google.com/file/d/1_5elESLEi3Lb_QFgDoo2NNsiP-n5O0Ow/view? usp=sharing
prisma:
migrations: Prisma Migrate generates SQL migration files for your declarative data model definition in the Prisma schema.
schema.prisma: Table for the database.
src:
auth: Everything you need to register, log in and guard.
change-password: Method for changing the password in a user's account.
comments: This is where the comments are served.
core: General purpose files for the project are placed here. Folder 'orm': contains prisma.service. The 'validations' folder: validation checks. Folder 'mail': implementation of message logic.
groups: This is where the groups are served.
orders: Serving the module: 'orders' entity through the 'CRUD' script.
users: Serving the module: 'users' entity through the 'CRUD' script.
main: The central file from which the API is launched.
templates: Templates for creating stylized messages.
Final-Project.postman_collection.json: Collection of the Postman json format.
# watch mode
$ npm run start:dev
In file 'Final-Project.postman_collection.json' contains a working collection of request for the project
SWAGGER UI: http://localhost:3006/api/doc
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.