Assists and encourages individuals for a manageable meal preparation lifestyle
# Installs server and client dependencies then builds the client
# for production to the `client/dist` folder
$ npm install
You need the follow API keys:
- Sendgrid - https://sendgrid.com/
- FoodData Central (FDC) - https://fdc.nal.usda.gov/api-guide.html/
Create .env file with the following:
-
MONGODB_URI=your_uri_string
-
SECRET_KEY=your_secret_key
-
SENDGRID_API_KEY=your_api_key
-
FDC_API_KEY=your_api_key
-
HOST_URL=http://localhost:3000
# starts client development server
# starts and monitor for any changes in the backend server
$ npm run dev
# Populates your database with basic data.
$ npm run util:populatedb <uri_string>
# Drops your entire database.
$ npm run util:dropdb <uri_string>
Set the following environment variables:
-
PORT=your_port
-
MONGODB_URI=your_uri_string
-
SECRET_KEY=your_secret_key
-
SENDGRID_API_KEY=your_api_key
-
SENDGRID_TEMPLATE_ID=your_template_id
-
FDC_API_KEY=your_api_key
-
HOST_URL=your_host_url
# Installs server and client dependencies then builds the client
# for production to the `client/dist` folder
$ npm install
# Starts the server to serve both api and html
$ npm start