TypeScript and NodeJS app setup with Sequelize and sequelize-auto-migrations-v2 for migrations
- Copy the content of .env-example to .env
- Run
yarn installto install all dependencies
- Create a new model or update an existing model
- Run
yarn db:makemigrationto automatically generate migrations based on the new changes in the models - The migrations can be found in the /src/database/migrations directory
- Run
yarn buildto build the project - cd into the generated /dist directory
- run
npx sequelize db:migrateto run pending migrations