Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/EndyKaufman/nest-permissions-seed

A simple application demonstrating the basic usage of permissions with NestJS.
https://github.com/EndyKaufman/nest-permissions-seed

contenttypes groups heroku jwt nestjs passwordhash permissions swagger typedoc users

Last synced: about 1 month ago
JSON representation

A simple application demonstrating the basic usage of permissions with NestJS.

Awesome Lists containing this project

README

        

## nest-permissions-seed
[![Greenkeeper badge](https://badges.greenkeeper.io/EndyKaufman/nest-permissions-seed.svg)](https://greenkeeper.io/)
[![Build Status][travis-image]][travis-url]
[![dependencies-release][dependencies-image]][dependencies-url]

A simple application demonstrating the basic usage of permissions with [NestJS](https://nestjs.com).

**Current repository no longer supported, all changes are in the new repository https://github.com/rucken/core-nestjs**

## Usage
- clone or fork [repository](https://github.com/EndyKaufman/nest-permissions-seed.git) `git clone --recursive https://github.com/EndyKaufman/nest-permissions-seed.git`
- make sure you have [node.js](https://nodejs.org/) 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`](http://localhost:3000)

## Demo application on [Heroku](https://nest-permissions-seed.herokuapp.com)

### Users
- user with admin group: [email protected], password: 12345678
- user with user group: [email protected], password: 12345678
- user with user group: [email protected], password: 12345678

### Swagger
- local: http://localhost:3000/swagger
- online: https://nest-permissions-seed.herokuapp.com/swagger

- apiKey template: ```JWT ```

## License

MIT

[travis-image]: https://travis-ci.org/EndyKaufman/nest-permissions-seed.svg?branch=master
[travis-url]: https://travis-ci.org/EndyKaufman/nest-permissions-seed
[dependencies-image]: https://david-dm.org/EndyKaufman/nest-permissions-seed/status.svg
[dependencies-url]: https://david-dm.org/EndyKaufman/nest-permissions-seed