- Build and Run Database
docker-compose up -d
- Stop Container
docker-compose down
- Check Volume
docker volume ls
- Run the following command to initialize the Sequelize project structure:
sequelize init
-
Once the project structure is initialized, open the config/config.json file and update it with your database configuration details, such as the database name, username, password, and host.
-
Create migration file
sequelize migration:generate --name create-refresh-tokens
- After updating the config/config.json file, run the migration command again:
sequelize db:migrate
- Run Backend Application
npm run dev