Skip to content

thejlyons/OffshoreAir

Repository files navigation

Offshore Air Inc.

A nodejs web application running on Heroku for Offshore Air Inc.

Running Locally

Make sure you have Node.js and PostgresSQL installed.

$ git clone https://github.com/thejlyons/OffshoreAir # or clone your own fork
$ cd OffshoreAir
$ npm install
$ npm start

Nodemon is included for easier local development:

$ npm run dev

Local env should now be running on localhost:5000.

You will need to set up PostgresSQL tables. Syntax for creating the necessary tables are at the top of each app/module/* file that requires tables.

You will also need to set up the following environmental variables Most systems:

$ export ENV_VAR=value

Windows:

$ set ENV_VAR=value

Powershell:

$ $env:ENV_VAR="value"
  • EMAIL_HOST (usually smtp.gmail.com)
  • EMAIL_USER
  • EMAIL_PASS
  • BASE_URL (include trailing slash. i.e. 'http://localhost:5000/')
  • ADMIN_PASS
  • FS_API_KEY (API Key for associated Filestack account)

Optional environmental variables:

  • DATABASE_URL (ex. postgres://postgres:dev@localhost:5432/postgres)
  • EMAIL_FROM (email address to send emails from)

About

Repository of website built for Offshore Air Inc.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published