Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 1.09 KB

File metadata and controls

50 lines (28 loc) · 1.09 KB

Sequelize

https://sequelize.org/docs/v6/getting-started/

Example https://github.com/taythebot/fastify-template.git

Commands

npx sequelize-cli db:migrate npx sequelize-cli db:migrate:undo:all

npx sequelize db:migrate --env test

npx sequelize-cli db:seed:all npx sequelize-cli db:seed --seed users-seeder

npx sequelize-cli seed:generate --name demo-user npx sequelize-cli db:seed:undo --seed name-of-seed-as-in-data npx sequelize-cli db:seed:undo:all

DEBUG=sequelize:* npx sequelize-cli db:seed:all --config sequelize/config.js

Plugins

Example https://github.com/taythebot/fastify-template.git

Tutorial, very good https://www.nearform.com/insights/complete-guide-fastify-plugin-system/

Notes

https://github.com/pundit-community/pundit.js

https://fusionauth.io/dev-tools/jwt-decoder

Create JWT token: http://jwtbuilder.jamiekurtz.com/

Validation

fastify/fastify-swagger#47 (comment)

fastify/fastify-multipart#59 (comment)

fastify/fastify-swagger#47 (comment)