We connect helpful volunteers with individuals who have a hard time accessing food and other essentials.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
node > 10: https://nodejs.org/en/download/
Install firebase cli
npm install -g firebase-tools
Log in to firebase
firebase login
Store config locally
firebase functions:config:get > .runtimeconfig.json
Get the following files from team members and store them at the root of DeliverEase
serviceAccountKey.json
.env.local
Install project dependencies
npm install
Start the nextjs local server
npm run dev
Check out the project at http://localhost:3000
Start the firebase emulator
npm start
Check out the project at http://localhost:5000
Check out the database at http://localhost:9000/path/to/data.json?ns=deliverease-staging
Use the following npm scripts to deploy hosting and functions to firebase
npm run deploy
npm run deploy:prod -- -m "deployment message"
git checkout master && git pull
git checkout -b <branch_name>
git commit -m "<commit_message>
git push --set-upstream origin <branch_name>
git checkout master && git pull
git branch -d <branch_name>
git remote prune origin
dev
: for UI development (runs next, hot reloading, but no firebase db/auth - runs on port 3000)
start
: for testing UI + firebase (runs firebase emulators, no hot reloading - runs on port 5000)
test
: for running our database rules tests (and more eventually)
deploy
: for deploying to staging
deploy:prod
: for deploying to production