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
- Run
$ npm install
to install the dependency modules - Run
$ node main.js
to start the app - Visit http://localhost:3000/ and you should see the home page.
Set up a local Postgres database for testing
- Install Postgres and start your local Postgres instance.
- Create a local database called
ethical_eating
by running$ createdb --encoding=UTF8 -h localhost -p 5432 ethical_eating
. - Import the sample SQL data definition file
$ psql -h localhost -d ethical_eating -f /your/path/to/data_definition_postgres.sql
.