npm i
"restart"
npx sequelize db:migrate:undo:all && npx sequelize db:migrate
this script above formats migrations and restarts
"start"
nodemon src/index.js
the script above starts the project
-
paste config:
have mysql database connection setup
-
paste middleware:
content all files reference middleware like multer, Authorization.
-
paste migrations:
database version control.
-
paste controllers:
content file references to part of the route controller.
-
paste models:
have models that are database reference tables.
-
paste public:
have static files like images, vids, documents, etc.
in testing use sqlite3 with development database, use jest, faker and factory-girl to generate dummy data.
run test
npm test
in the test you choose where the storage is located in the local or s3, just select in the environment variables