it's is an Express-Sequelize-Node project skeleton for backend
Install packages with npm install
. This will install sequelize-cli globally automatically.
If you have nvm configured in your operating system, use the nvm use
command to apply the version required by the project: lts/erbium
Set your environment file with dialect settings to sequelize inside .env
file, you can also specify the environment mode (which by default is development), PORT and HOST of application.
Create your database using the following command: npx sequelize db:create
and run npx sequelize db:migrate
to run migrations.
You are ready to go, ok now run the command: npm start
The following is the recommended project structure, this keeps a directory clean and easy to read.
But you can always make your project what ;)
- src
- api
- v1
- config
- db
- migrations
- models
- seeders
- lib