Web app for connecting people to meet and eat together at restaurants.
Jane:
Jay:
Vi:
git clone git@github.com:chingu-voyages/v8-bears-team-12.git
cd v8-bears-team-12
npm install
This project expect certain environment variables to be provided. It can
be supplied with a .env
file in project root directory.
The environment variables:
Name | Required | Description |
---|---|---|
PORT |
yes | Express server port |
ATLAS_DBURI |
yes | MongoDB URI connection string |
YELP_APIKEY |
yes | Yelp API Key |
SECRET |
yes | Any string to be used as JWT secret |
MAILGUN_APIKEY |
yes | Mailgun API Key |
MAILGUN_DOMAIN |
yes | Mailgun Domain |
TESTDATA |
no | Set to anything to use restaurant test data instead of Yelp API |
MAIL_FROM |
yes | Email address to be used as from address for Mailgun sends |
PROTOCOL |
no | Specify protocol to use for http links in email (http or https) |
To run in development mode:
npm run devmon
To build and run in production mode:
npm run build
npm start
npm run dev
: Will run node server/main.js
with NODE_ENV
set to development
npm run devmon
: Same as npm run dev
but using nodemon to automatically watch for file changes and restart servernpm run build
: Builds the Webpack bundles into client/build
foldernpm start
: Does a npm run build
and run node server/main.js
with NODE_ENV set to production
There is a CLI tool built for rudimentary initial testing. It could be expanded upon. It can be run while in the project folder with:
npm run cli -- users list
npm run cli -- users add
You may want to create a bash alias if planning to use it often:
# file: $HOME/.bashrc
alias meet-cli="cd /Users/username/projects/v8-bears-team-12 && npm run --silent cli"