Skip to content
Building REST API in Node/Express Application using Sequelize,Postgres
Branch: master
Clone or download
Mac Mac
Mac and Mac added readme
Latest commit 95c1b84 Aug 29, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.sequelizerc added readme Aug 29, 2019
index.js initial commit Aug 29, 2019

Building REST API in Node/Express App using Sequelize,Postgres

This Repository is building REST API Design in Node/Express App using Sequelize and Postgres.



 $ npm install
 $ node_modules/.bin/sequelize init

Sequelize init will creat a folder config,controller,migrations and models

create a file called .sequelizerc

const path = require('path');

module.exports = {
  "config": path.resolve('./server/config', 'config.json'),
  "models-path": path.resolve('./server/models'),
  "seeders-path": path.resolve('./server/seeders'),
  "migrations-path": path.resolve('./server/migrations')

Create a Database testdb in Postgres Dashboard

$ node_modules/.bin/sequelize db:migrate      

To Run Application

$ node index.js
You can’t perform that action at this time.