Awesome
nest-permissions-seed
A simple application demonstrating the basic usage of permissions with NestJS.
Current repository no longer supported, all changes are in the new repository https://github.com/rucken/core-nestjs
Usage
- clone or fork repository
git clone --recursive https://github.com/EndyKaufman/nest-permissions-seed.git
- make sure you have node.js installed version 6+
- make sure you have NPM installed version 3+
- run
npm install
to install project dependencies - copy
_env
to.env
and set environments for use - run
npm run schema:sync
to create all tables in database - run
npm run migrate:run
to run all migrations - run
npm run start:prod
to fire up prod server (npm run start:watch
- dev server) - Open browser to
http://localhost:3000
Demo application on Heroku
Users
- user with admin group: admin@admin.com, password: 12345678
- user with user group: user1@user1.com, password: 12345678
- user with user group: user2@user2.com, password: 12345678
Swagger
-
apiKey template:
JWT <token_generated_on_login>
License
MIT