chingu-voyages / v8-bears-team-12

Web app for connecting people to meet and eat together at restaurants
https://pal-a-table.herokuapp.com/
Apache License 2.0
3 stars 2 forks source link
express-js mongodb nodejs passportjs react socket-io

Pal-a-table

Web app for connecting people to meet and eat together at restaurants.

Team

Jane:

Jay:

Vi:

Features

Requirements

Installing

Downloading

git clone git@github.com:chingu-voyages/v8-bears-team-12.git
cd v8-bears-team-12
npm install

Configuration

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)

Running

To run in development mode:

npm run devmon

To build and run in production mode:

npm run build
npm start

Additional Information

NPM run scripts

CLI tool

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"