Description
This is a basic node application using SQL database with Sequelize as ORM.
How to execute
- Create
.env.dev
or.env.prod
in root directory and define the environment variables cited insrc/config/database.js
. Also, defineSERVER_PORT
variable, which is the port where application will be provide. - Change scripts in
package.json
to useNODE_ENV=dev
orNODE_ENV=prod
- Run de follow commands:
docker-compose up -d
yarn install
yarn sequelize db:create
yarn sequelize db:migrate
yarn start