Reduce your groceries' carbon footprint. Visit now ---> greengrocer.me
- 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 root directory and fill in the required fields:
POSTGRES_HOST=hostname
POSTGRES_USER=username
POSTGRES_PASSWORD=password
POSTGRES_DB=databasename
POSTGRES_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