Skip to content

A fully functional web application that allows users to search for, view, and save recipes. The application also supports searching for a recipe by name or filtering recipes by multiple criteria.

DrAcula27/CookBook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to My Cook Book Recipe Saver!

A fully functional web application that allows users to search for, view, and save recipes. The application also supports searching for a recipe by name or filtering recipes by multiple criteria.

Features

  • Anyone not logged in can:
    • Search for recipes using multiple criteria including:
      • Area, i.e. what country the recipe is from (e.g. American)
      • Category, i.e. what type of dish it is (e.g. Breakfast or Vegetarian)
      • Ingredient, i.e. an ingredient in the recipe
    • Create an account or log in.
  • Logged in users can perform all of the above plus:
    • Save recipes for future reference.
    • View saved recipes on their profile page.

Demo

Live Link

My Cook Book Recipe Saver

Screenshots

Home

View One or More Recipes

View A Recipe's Details

User Profile

Installation

To run the app locally:

  1. Clone the repository.
  2. Navigate to the root directory.
  3. Install dependencies using npm install.
  4. Create an account with MongoDB Atlas.
  5. Create a collection called "CookBookData.
  6. Create a .env file in the root directory and set the following environment variables:
    • MONGOUSERNAME
    • MONGOPASSWORD
    • SESSION_SECRET

Technologies Used

This project uses the MERN stack.

Other technologies used include:

Auth Styling Search/Filter
Passport Skeleton.css Axios
Express-session Custom CSS React-Select
Bcrypt FontAwesome Icons TheMealDB API

Author

👤 Danielle Andrews

Available Scripts

This project was bootstrapped with Create React App.

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

Future Work

  • Incorporate an e-commerce aspect to the application where:
    • users can add recipe ingredients to a shopping cart and
    • email a shopping list or "purchase" the ingredients.
  • Add ability to allow users to manage their account. This includes:
    • updating their email and/or password and
    • deleting their account.
  • Add ability for logged-in users to create, read, update, and delete (CRUD) their own recipes.
    • User-generated recipes will only be viewable by users that are logged-in and on their profile page.

Attributions

  • Inspiration for this project was twofold:
    1. Dealing with all the annoyances of current recipe blogs that need to tell the life story of the author before getting to the recipe.
    2. Not being able to have a central location for all the recipes I like, plus the ones handed down from my family.
  • Cookbook icon is created by Flat Icons - flaticon.
  • All other icons are from FontAwesome.
  • CSS boilerplate is from Skeleton.

Show Your Support

Give a ⭐️ if you liked this project!