You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SED-Stack/models/db.js

8 lines
352 B

var Sequelize = require('sequelize'); //require sequelize package
var DB_URL = process.env.DATABASE_URL || 'postgres://matthuntington@localhost:5432/sedstack'; //use either environment variable or static url
var db = new Sequelize(DB_URL); //create the connection. Will not run multiple times, due to require cacheing the file
module.exports = db;