Skip to content

chrispalka/donkwizard

Repository files navigation

DonkWizard

Installation

Install dependencies

cd DonkWizard2.0
npm i

Set ENV variables Node-Postgres and Express Server

SERVER='localhost'
PGHOST='localhost'
PGUSER=usernamehere
PGDATABASE=donkwizard
PGPASSWORD=null
PGPORT=5432
PORT=3000

For production environments configure config/config.js respectively

module.exports = {
  "development": {
    "username": process.env.PGUSER,
    "password": null,
    "database": process.env.PGDATABASE,
    "host": process.env.PGHOST,
    "dialect": "postgres",
    "logging": false
  },
  "production": {
    "username": process.env.PGUSER,
    "password": process.env.PGPASSWORD,
    "database": process.env.PGDATABASE,
    "host": process.env.PGHOST,
    "dialect": "postgres",
    "use_env_variable": "DATABASE_URL",
    "logging": false,
    "dialectOptions": {
      "ssl": {
        "rejectUnauthorized": false
      }
    }
  }
};

Run migration & start application

sequelize db:migrate
npm run build-dev
npm run start

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published