Dan Moraru, Amir Mojtahedi, Oleksandr Sologub, Samir Abo-Assfour
MERN stack app containing large data set of foods. Allows the user to search and calculate total nutrition and daily value, as well as create a user account and create, update and delete custom food. Additionally, allows creating nutrition goals to track progress. App is hosted on Azure.
NOTE: All servings are in 100 grams
- Name
- Calories
- Fat (g)
- Protein (g)
- Carbohydrate (g)
- Sugars (g)
- Fiber (g)
- Cholesterol (mg)
- Calcium (mg)
- Iron, Fe (mg)
- Vitamin C (mg)
- Vitamin D (mcg)
- Vitamin B.12 (mcg)
- Vitamin A, RAE (mcg)
- Sodium (mg)
- Potassium (mg)
There are two directories in the root of the project.
- The Express server is in
server/ - The React app is in
client/ - The server responds to API calls and serves the built React app.
Server and Client directories have their own modules and package.json
NOTE: Make sure to have .env file in root, server and in client
- CONNECTION_STRING=
- GOOGLE_CLIENT_ID=
- SECRET=
- AZURE_SAS=
- CONTAINER_NAME=
- SACCOUNT_NAME=
- REACT_APP_GOOGLE_CLIENT_ID=
To install all the dependencies and build the app:
npm run build
Seed database if haven't done already
cd server
npm run seed
Run Tests
npm run test
npm run dev
cd client
npm start
Click y to accept new port for proxy
npm run start