/MangaApi

Primary LanguageTypeScript

Manga API

Contributors


Info

Guide

git clone git@github.com:NathaelB/MangaApi.git
cd ./MangaApi
npm install
cp .env.example .env
# Configure the environment file

# For launch in development environment
npm run dev

# For deploy
# With DOCKER

Permission management

Each model is assigned a Policy, in this policy it is given actions actions (view/store/update/delete), and in the controller of the latter of the latter, you can implement the bouncer in this way or not :

public async index ({ bouncer }: HttpContextContract) {
  await bouncer.with('UserPolicy').authorize('view')
  // ...
}

Diagram

Diagram

Merise Schema

Merise

Download Rapport