Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nartc/nartc-nx

Angular + NestJS Auth Example using Permission Based Authentication
https://github.com/nartc/nartc-nx

Last synced: 8 days ago
JSON representation

Angular + NestJS Auth Example using Permission Based Authentication

Awesome Lists containing this project

README

        

## NX Angular + NestJS Auth Example with Permission Based

### Angular

Awaiting `Angular 9`

### NestJS (WIP)

1. Run `yarn ng serve api` to start the server on port `3001`
2. `SwaggerUI` runs on `localhost:3001/docs`
3. Make sure to have a local `mongod` instance running
4. Make sure to create the following role to test things out at `Swagger -> Role -> POST /roles`:

```json
{
"isGlobal": false,
"parentId": "string",
"roleName": "Standard User",
"notes": "This is a standard user",
"permissions": {
"user": 1,
"role": 0
}
}
```

5. Create a User