NestJS and GraphQL based project simulating an account service with permission control
- ✅ CRUD Account with relations roles
- ✅ CRUD Roles with relations actions
- ✅ CRUD Actions
- ✅ Login ➡ generate JWT
- ✅ JWT Guard
- Database
- Configure
ormconfig.json
file with database data - Install dependencies
yarn install
- Copy
.env.example
to.env
- Run project
yarn start:dev
- Access
http://localhost:3000/graphql
- Create a account
- Access login route
- Set header token for use other routes
{
"Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijc5YTdhNjgwLTRlMWYtNDU5OC1hNjk1LTExNWEwZTkxM2JlYyIsImVtYWlsIjoiaGVucmlxdWV3ZWlhbmRAZ21haWwuY29tIiwiaWF0IjoxNTg2NjE3OTY1LCJleHAiOjE1ODY2MjE1NjV9.Sqv24CLalMw1YiTeAsPDKeuchIMSHii-N64RMVBV0f8"
}
Changelog project
- Module account
- Add AuthGuard on routes
- Add authentication methods
- Module Roles
- Module Actions
- Add exceptions
- Tests for all features