docker compose -f docker-compose-sqlite.yml up
docker compose -f docker-compose-sqlite.yml down
npm init es6
npm install --save-dev nodemon
- Adicione um script ao arquivo
package.json
para iniciar o servidor com o Nodemon.
"scripts": {
"start": "nodemon app.js"
}
Agora, para iniciar o servidor com o Nodemon, execute o seguinte comando no terminal:
npm start
https://sequelize.org/docs/v6/core-concepts/model-basics/#using-sequelizedefine
https://sequelize.org/docs/v6/core-concepts/model-querying-finders/
https://sequelize.org/docs/v6/core-concepts/model-instances/