Skip to content

tuo/nest-sequelize-spike

Repository files navigation

npm install --save @nestjs/sequelize sequelize sequelize-typescript pg-hstore pg npm install --save-dev @types/sequelize

TODO:

  • jwt sign and decode to req.user use AuthGuard (no use of JWT passport, just to give a test)

  • Add exclude feature for useGlobalGuards #964: nestjs/nest#964

  • add cors/helm etc

  • error handling

  • cron jobs

httpie localhost:3000/profile Authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjAyNzU5NTExLCJleHAiOjE2MDI4NDU5MTF9.iV9og49A-qt03Syn13p_Y4bkZHkruEPlNm-sEyG1g"

httpie POST localhost:3000/auth/login username=Tuo pass=111222 httpie localhost:3000/profile

add roles for admin/staff
add public for exclusion

https://docs.nestjs.com/guards

PROBLEMS:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published