SOIL is a student-made website built with React. It's a place for users to learn about organic foods, getting diet tips & recipes. It's easy to use, with features like signing up, managing profiles, using a shopping cart, and diet planning.
- Landing Page: A welcoming first impression for users, providing an overview of the application.
- Diet Planner: Lets users create their own profile and gives them recipes depending on when chosen health goals.
- Garden Helper: A feature that provides users with a guide on organic gardening in their backyard, helping them grow their own organic vegetables.
- Specials: Showcases purchasable products with indicators for special offers.
- Profile: A personalized space for users to manage their account details and customize their diet plan.
- Login and Sign Up: Lets users create their own account or log into an existing one.
- Backend API
-
Clone the repo.
-
Create
server/.env
file containing -
Navigate into
/client
&/server
-
Install dependencies,
npm i
-
Start the server,
npm start
Your .env
file should look like this:
URI=MYSQL_URI
- To test the backend of the website, first follow the Usage guide
- Once all set up navigate into
/server/tests
- Run
npm run test
-
How were the tests set up?
- Using jest we implemented generic and some edge case requests and mocked what a generic and valid return would be
-
For more detail regarding the individual unit tests:
- Refer to
server/tests/cartTests.js
about the shopping cart features - Refer to
server/tests/reviewTests.js
about the review features
- Refer to
- Icons from Icons8 & heroicons
- Images from Unsplash
- Logo made with Logo Maker