A progressive Node.js framework for building efficient and scalable server-side applications, heavily inspired by Angular.
Nest framework TypeScript starter repository.
- Create endpoint on permissions controller to list all route resource on permissions
- Create endpoint on permissions controller to list all permission prefix
- CRUD permissions
- CRUD role
- Assigning of permissions on a specific role
- Refactor permission.guard.ts to reduce query calls. One solution is to fetch the roles and permissions directly from the signed JWT or from req.user
$ npm install
# Setup Database (build dist -> reset db -> run migration -> run seed)
$ npm run db:setup
# Generate migration based on created entity (auto generated)
$ npm run migration:generate -n <migration_name>
# Create an empty migration file
$ npm run migration:create -n <migration_name>
# Running the migration
$ npm run migration:up
# Revert a migration
$ npm run migration:down
# Show available migrations
$ npm run migration:show
# Run the seeder
$ npm run seed
# Run specific seed class
$ npm run seed:class <ClassName>
# Show seeding connection config
$ npm run seed:config
# Drop all the schema (Hard reset)
$ npm run schema:drop
# 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
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.