Reduce your groceries' carbon footprint.
- run
npm install
in the root directory - run
npm install
in the server directory
Following Airbnb's react style guide:
- https://www.npmjs.com/package/eslint-config-airbnb
- https://medium.com/@Tunmise/set-up-eslint-with-airbnb-style-guide-in-5-minutes-d7b4cc5707f8
- https://github.com/airbnb/javascript
To lint the entire repository, run npm run lint
- with postgreSQL set up, create a database called greengrocer
- open postgreSQL interactive terminal (psql) inside the project's root directory
- run
\i db/schema/schema.sql
to create the tables - run
\i db/seeds/01_users.sql
to seed the database - create a .env file inside the server directory and fill in the required fields:
DB_HOST=hostname
DB_USER=username
DB_PASS=password
DB_NAME=databasename
DB_PORT=portnumber
- for a full database reset, run
npm run reset-db
from the root directory
- from the root directory:
npm run dev
logs coming from express are prefixed with [0] and logs from react are prefixed with [1]
- from the root directory:
npm run prod
- navigate to localhost:8081