Skip to content

dylanhernandez1/Whats_In_The_Fridge

Repository files navigation

WHATS IN THE FRIDGE?

Instructions:

  1. Run npm install and npm install react-router-dom and npm install react-icons and npm install dotenv and npm install bcrypt jsonwebtoken and npm install react-datepicker --save and npm install jwt-decode from the root for application to run
  2. Run npm install nodemailer and npm i --save unsplash-js and npm install --save-dev multer and npm install --save groq-sdk inside the backend folder
  3. Run npm install react-markdown inside the frontend folder
  4. Run npm install --save-dev jest and npm install @testing-library/react @testing-library/user-event react-router-dom jest and npm install jest-environment-jsdom --save-dev and npm install util --save-dev and npm install --save-dev babel-jest @babel/core @babel/preset-env @babel/preset-react and npm install --save-dev @testing-library/react @testing-library/jest-dom and npm install --save-dev identity-obj-proxy and npm install mongodb-memory-server and npm install mockingoose and npm install cypress --save-dev from root for tests to run
  5. Coverage npm test -- --coverage
  6. To run the backend, create a .env file touch .env and copy and paste this in MONGODB_URI = "mongodb+srv://whats-in-the-fridge-user:DWIRaCXhO11dWbPY@cluster0.dmiyl.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0". DWIRaCXhO11dWbPY is our temporary testing database password.
  7. In this same .env file, you need to generate TOKEN_SECRET, use this call node -e "console.log(require('crypto').randomBytes(32).toString('hex'))" and paste TOKEN_SECRET = output into the .env file. If not running run npm install node-gyp -g npm install bcrypt -g npm install bcrypt --save
  8. To run acceptance testing, go to root, run npm run cy:open

How to Run On Web

Link: https://white-stone-02cbbab1e.6.azurestaticapps.net

Current Demo

Link: https://drive.google.com/file/d/1-DF9gWVICOnoTd2iIAfFA8pn8QXNmS5H/view?usp=sharing

Final Presentation

Link: https://docs.google.com/presentation/d/1mYY5xVuRVQNVl82VJjr9D-LUXhEZOkWFhZJvqiZmHfY/edit?usp=sharing

Figma/Prototype Information

Figma Link: https://www.figma.com/design/2t0g61ZrfOgUqMNpqOzQGS/whats-in-my-fridge?node-id=3-4&t=2IYp4LDfXmCGodHy-1

Figma Prototype Link: https://www.figma.com/proto/2t0g61ZrfOgUqMNpqOzQGS/whats-in-my-fridge?node-id=3-4&t=2IYp4LDfXmCGodHy-1

Note: Need to include auto formatting based on dimensinons on screen.

Product Tech Spec

Link: https://docs.google.com/document/d/1Ak_zM_7FnW5PO-jdHTA8a4cIh58q4heEO3FUmQtbRik/edit?usp=sharing

UML

UML Class Diagram: https://drive.google.com/file/d/1S4yT_NFGVBmOmzIkn5r9AaRlGA2nTrHd/view?usp=sharing

Format Rules:

Link: https://airbnb.io/javascript/react/

Installing Prettier:

  1. Go to extensions on the left hand bar on VS Code
  2. Search Prettier and Install

Merging, Pulling, Committing, and Pushing

  1. Create a branch git branch TESTBRANCH
  2. Update main before branching git pull origin main
  3. Go into the branch git checkout TESTBRANCH
  4. Retrieve latest from main git pull origin main OR git merge origin OR git fetch
  5. Modify code and files
  6. After finishing run npm run format AND npm run lint
  7. Add the files git add . or git add --all
  8. Commit your branch git commit -m "Message"
  9. Push your branch git push
  10. Route back to main git checkout main
  11. Retrieve latest from main again (in case you don't have the lastest version) git pull origin main
  12. If there is modifications, fix and then merge git merge TESTBRANCH
  13. Push all changes to repo git push origin main

React icons

Link: https://react-icons.github.io/react-icons/

Test Coverage

6/5/2025 10:00PM:

-----------------------|---------|----------|---------|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 86.93 81.13 87.4 86.83
UserHouse-services.js 95.91 100 100 95.91 212-213
UserHouse.js 100 100 100 100
app.js 79.29 71.83 79.48 79.18 60-61,98,143,269,288-292,309,321,330-332,347-350,372-400,437,527-528,558-559,607,634-635,640-649,685-689,708-713,719-721,786-826,844,859,881-890,950,969-970,984-994,1020,1034,1047
food-item.js 100 100 100 100
food-services.js 100 100 100 100
house-services.js 100 100 100 100
house.js 100 100 100 100
user-services.js 100 100 100 100
user.js 100 100 100 100
----------------------- --------- ---------- --------- --------- -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors