Giter Site home page Giter Site logo

receipe-app's Introduction

Recipe App

Welcome to the Recipe App! This application allows users to search for recipes, view recipe details, and save their favorite recipes.

Table of Contents

Project Overview

The Recipe App is a web application that enables users to explore a wide variety of recipes. Users can register, log in, and search for recipes. They can view detailed information about each recipe, including ingredients and instructions. Additionally, users can save their favorite recipes.

Technologies Used

The Recipe App is built using the following technologies and tools:

  • Frontend:

    • React
    • React Router
    • Chakra UI
    • Axios
  • Backend:

    • Node.js
    • Express.js
    • MongoDB
    • Mongoose
    • JSON Web Tokens (JWT) for authentication

Features

  • User Registration: Users can create accounts by providing their email and password.

  • User Login: Registered users can log in using their email and password.

  • Recipe Search: Users can search for recipes by entering keywords.

  • View Recipe Details: Users can click on a recipe to view its details, including ingredients and instructions.

  • Save as Favorite: Logged-in users can save recipes as favorites.

Getting Started

To run the Recipe App locally, follow these steps:

  1. Clone this repository to your local machine.

  2. Install the required dependencies for both the frontend and backend by running the following commands in the respective directories:

    • Frontend:

      cd frontend/recipe-app
      npm install
    • Backend:

      cd backend
      npm install
  3. Configure environment variables for the backend. Create a .env file in the backend directory and define the following variables:

    • MONGO_URI: Your MongoDB connection string.
    • JWT_SECRET: A secret key for generating JWT tokens.
  4. Start the frontend and backend servers. Run the following commands in their respective directories:

    • Frontend:

      cd frontend
      npm start
    • Backend:

      cd backend
      npm start
  5. Access the Recipe App in your web browser at http://localhost:3000.

API Endpoints

The backend provides the following API endpoints:

  • POST /api/users/register: Register a new user.
  • POST /api/users/login: Log in a user.
  • GET /api/recipes/search: Search for recipes.
  • GET /api/recipes/details/:recipeId: Get detailed information about a recipe.
  • POST /api/users/favorites: Save a recipe as a favorite.

Environment Variables

  • MONGO_URI: Your MongoDB connection string.
  • JWT_SECRET: A secret key for generating JWT tokens.

Deployment

You can deploy the Recipe App on platforms like Vercel for the frontend and Heroku for the backend.

Contributing

We welcome contributions from the community. If you'd like to contribute to this project, please follow our contribution guidelines.

License

This project is licensed under the MIT License. See the LICENSE file for details.

receipe-app's People

Contributors

snu0929 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.