Skip to content

Production Release

Latest
Compare
Choose a tag to compare
@anthonyliuhao anthonyliuhao released this 04 Dec 04:21
a759f6f

This is our production release to wrap up CS 361.

Setup

Requirements

The project is known to work with the following setup.

  • Node.js v12.19.0 (run $ node --version to check)
  • npm 6.14.8 (run $ npm --version to check)

Run the app

  1. Run $ npm install to install the dependency modules
  2. Run $ node main.js to start the app
  3. Visit http://localhost:3000/ and you should see the home page.

Set up a local Postgres database for testing

  1. Install Postgres and start your local Postgres instance.
  2. Create a local database called ethical_eating by running $ createdb --encoding=UTF8 -h localhost -p 5432 ethical_eating.
  3. Import the sample SQL data definition file $ psql -h localhost -d ethical_eating -f /your/path/to/data_definition_postgres.sql.