-
Create Migration $ yarn sequelize migration:create --name=create-ModelName
-
Run Migration $ yarn sequelize db:migrate
-
Undo migration $ yarn sequelize db:migrate:undo or $ yarn sequelize db:migrate:undo:all
You can create schemas on /app/schemas directly without command.
I had a problem to find backend nodejs templates with sequelize and postgres. And I choose to make it by myself.
This template is already configured with Postgres and mongo. User authentication is already done too.
This template is a part of my portfolio, that I wanted to improve my skills in resolving problems and create APIs.I will be happy if you provide me any feedback about this project, anything that you can report can make me a better developer!
Email-me: brpadilha.dev@gmail.com
Connect with me at Linkedin
It is better for you to use Docker with mongo and Postgres.
Postgres:
$ docker run --name database -e POSTGRES_PASSWORD=docker -p 5432:5432 -d postgres
MongoDB:
$ docker run --name mongobarber -p 27017:27017 -d -t mongo