Skip to content

Reduce your groceries' carbon footprint.

Notifications You must be signed in to change notification settings

lliam-mcbean/greengrocer

 
 

Repository files navigation

Actions Status

🌏 GreenGrocer 🌍

Reduce your groceries' carbon footprint.

Home page social feed search feature search feature globe feature graph feature

🔧 project setup

  1. run npm install in the root directory
  2. run npm install in the server directory

🪄 linting setup

Following Airbnb's react style guide:

To lint the entire repository, run npm run lint

💾 database setup

  1. with postgreSQL set up, create a database called greengrocer
  2. open postgreSQL interactive terminal (psql) inside the project's root directory
  3. run \i db/schema/schema.sql to create the tables
  4. run \i db/seeds/01_users.sql to seed the database
  5. 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
  1. for a full database reset, run npm run reset-db from the root directory

🟠 running the app in development mode

  1. from the root directory: npm run dev

logs coming from express are prefixed with [0] and logs from react are prefixed with [1]

🟢 running the app in production mode

  1. from the root directory: npm run prod
  2. navigate to localhost:8081

About

Reduce your groceries' carbon footprint.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 74.3%
  • SCSS 24.3%
  • HTML 1.4%