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
- 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
- user with admin group: [email protected], password: 12345678
- user with user group: [email protected], password: 12345678
- user with user group: [email protected], password: 12345678
-
apiKey template:
JWT <token_generated_on_login>
MIT