/MinimalCMS

A nestjs boilerplate for CMS with JWT auth and policy based access control

Primary LanguageTypeScript

Description

A nestjs boilerplate I made for myself. It has JWT auth and RBAC using policy for each action.

Installation

$ npm install

DB commands

DB was designed first using MySQL workbench for this

# pull db changes
$ npx prisma db pull
# update schema
$ npx prisma db generate

First time to seed db with admin user

$ npx prisma db seed

Running the app

# dev
$ npm run start:dev