Skip to content

AnalyticRiskTechnology/node-express-postgresql-sequelize

 
 

Repository files navigation

Node.js, Express.js, Sequelize.js and PostgreSQL RESTful API deployed on Openshift

This project includes a template for deploying node and postgres onto openshift It also shows how to run a migration as an initContainer. This is mildly tricky as we have to get it to resolve the same image as an initContainer and give it a working environment to connect to the database.

This js source code is part of Node.js, Express.js, Sequelize.js and PostgreSQL RESTful API tutorial.

To deploy:

  • login in to openshift oc login ...
  • select a project oc project ...
  • deploy from the template ./deploy.sh

To run locally:

  • Make sure you have install and run PostgreSQL server
  • Create database with the name same as in config file
  • Run npm install or yarn install
  • Run sequelize db:migrate
  • Run nodemon or npm start

About

Node.js, Express.js, Sequelize.js and PostgreSQL RESTful API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.5%
  • Shell 2.7%
  • HTML 1.3%
  • CSS 0.5%