This is a boilerplate application for building REST APIs in Node.js using ES6 and Express. Intended for use with Postgres using Sequelize ORM.
Install dependencies:
npm iSet environment (vars):
cp .env.example .envStart server:
# Start server
npm run devInstall nodemon and sequelize-cli
npm install -g nodemon
npm install -g sequelize-cliCreate database
sudo su postgres
psql
CREATE DATABASE db_nameCreate Migration
sequelize model:create --name Test --attributes title:string,price:string,description:stringMigrate all migrations
sequelize db:migrateRevert all migrations
sequelize db:migrate:undo