Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chingu-voyages/v46-tier2-team-14

add a little ✨swaad ✨into your life - swaad is a recipe finder that helps you discover a wide variety of recipes from all over the world 🌎
https://github.com/chingu-voyages/v46-tier2-team-14

cssmodules hacktoberfest headlessui react-query reactjs recipe-finder tasty-api vite

Last synced: about 13 hours ago
JSON representation

add a little ✨swaad ✨into your life - swaad is a recipe finder that helps you discover a wide variety of recipes from all over the world 🌎

Awesome Lists containing this project

README

        

# SWAAD

SWAAD is a web application that fetches recipes from an [Tasty API](https://rapidapi.com/apidojo/api/tasty), offering users a seamless and responsive platform to discover and explore a variety of dishes.

## Table of Contents

- [Overview](#overview)
- [Features](#features)
- [Usage](#usage)
- [How to Use](#how-to-use)
- [Screenshots](#screenshots)
- [Running the project](#runnig-the-project)
- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Quick Start](#quick-start)

## Overview
SWAAD is a web application that offering users a seamless and responsive platform to discover and explore a variety of dishes. The user-friendly interface provides detailed recipe information, search options.
Built with React.js, Typescript. SWAAD is your go-to source for culinary inspiration.

## Features

1. **Search by Name or Ingredients:**
Users can search for recipes by entering either the recipe name or specific ingredients, providing a flexible and convenient search experience.

2. **Autocomplete Feature:**
SWAAD offers autocomplete suggestions as users type, streamlining the search process and ensuring accurate results.

3. **Light and Dark Mode:**
Enjoy a personalized viewing experience with the option to switch between light and dark modes, enhancing readability and reducing eye strain.

4. **Saved Recent Searches:**
Users can conveniently access their recent searches, saving time and enabling quick reference to previously explored recipes.

5. **Detailed Recipe Information:**
Each recipe page provides comprehensive details, including ingredients, nutritional value, preparation time, and step-by-step instructions.

6. **Nutritional Value Display:**
The nutritional information for each recipe is prominently displayed, allowing users to make informed choices based on their dietary preferences or requirements.

7. **Preparation Time Indication:**
Recipes include estimated preparation times, giving users a quick overview of the time commitment required for each dish.

8. **Interactive Checklist for Ingredients:**
Users can mark off ingredients as they gather them, facilitating an organized and efficient cooking process with an interactive checklist.

9. **Responsive Design:**
The SWAAD app is designed to be responsive, ensuring a seamless and enjoyable user experience across various devices, including desktops, tablets, and mobile phones.

10. **User-Friendly Interface:**
The intuitive and user-friendly interface makes navigation smooth, allowing users to focus on discovering and exploring new recipes effortlessly.

## Usage
This section provides instructions on how to use SWAAD project on your local machine.

### How to Use

- **Search for Recipes:**
- Enter a recipe name or specific ingredients in the search bar to find relevant recipes instantly.

- **Explore by Cuisine:**
- Utilize the filter options to explore recipes based on different cuisines, broadening your culinary horizons.

- **Toggle Light/Dark Mode:**
- Personalize your viewing experience by toggling between light and dark modes, enhancing readability and reducing eye strai

- **Interactive Checklist for Ingredients:**
- When viewing a recipe, use the interactive checklist for ingredients to keep track of what you have prepared. Simply check off items as you gather them during the cooking process.

- **Saved Previous Searches:**
- Take advantage of the saved Previous searches feature to streamline your exploration. Access your recent searches for quick reference and easy retrieval of previously discovered recipes.

## Screenshots
1- **Landing page**

![Screenshot (859)](https://github.com/chingu-voyages/v46-tier2-team-14/assets/72970648/418648dd-5d1b-4a44-a7f5-6a2a3f406821)

2- **Recipe Page**

![Screenshot (862)](https://github.com/chingu-voyages/v46-tier2-team-14/assets/72970648/9318e465-63db-4886-9c4b-d601d0967a16)
![Screenshot (863)](https://github.com/chingu-voyages/v46-tier2-team-14/assets/72970648/00bc17a5-6819-4578-bb61-e4cd2f860c6c)
![Screenshot (865)](https://github.com/chingu-voyages/v46-tier2-team-14/assets/72970648/868b96df-fa01-4881-8e2c-9d475818d373)
3- **Search Results**

![Screenshot (864)](https://github.com/chingu-voyages/v46-tier2-team-14/assets/72970648/8b552526-100d-48a7-b8bd-121279d4c131)

4- **Search Suggestions**

![Screenshot (861)](https://github.com/chingu-voyages/v46-tier2-team-14/assets/72970648/10cfbff2-3f68-4a71-9661-114898f614f5)

5- **Previous Searches**

![Screenshot (860)](https://github.com/chingu-voyages/v46-tier2-team-14/assets/72970648/6f0c3017-c9a4-45bd-825b-e4ec2c4c5531)

## Running the Project
These are the instructions on how to run the SWAAD on your local machine.

### Prerequisites

Ensure you have the following prerequisites installed on your machine:

- [Node.js](https://nodejs.org/en/download/): The JavaScript runtime environment for running the project.
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git): Version control system for cloning and managing the project.

### Installation

1. **Clone the Repository:**
```bash
git clone https://github.com/chingu-voyages/v46-tier2-team-14.git

```

2. **Install Dependencies:**
```bash
npm install
3. **API integration:**
Configure the project to use your recipe API by updating the API key in the `.env` file. Follow these steps:
- Obtain API Key

Visit the [Tasty API](https://rapidapi.com/apidojo/api/tasty) website to obtain your API key.

- Set API Key in `.env`

1. Copy `.env.template` contents into a `.env` file in the root of your project.
2. Open the `.env` file and edit the following line:

```env
VITE_API_KEY=YOUR_API_KEY_HERE
```

Replace `YOUR_API_KEY_HERE` with the API key you obtained.

### Dependencies

- [@headlessui/react](https://www.npmjs.com/package/@headlessui/react): ^1.7.17
- [@tanstack/react-query](https://www.npmjs.com/package/@tanstack/react-query): ^5.0.0
- [axios](https://www.npmjs.com/package/axios): ^1.5.1
- [react](https://www.npmjs.com/package/react): ^18.2.0
- [react-dom](https://www.npmjs.com/package/react-dom): ^18.2.0
- [react-icons](https://www.npmjs.com/package/react-icons): ^4.11.0
- [react-router-dom](https://www.npmjs.com/package/react-router-dom): ^6.16.0

### Quick Start
Follow these steps to quickly start the project:
1. **Run the Application:**
```bash
npm run dev
```

2. **Access the Application:**
Open your web browser and go to `http://localhost:3000` to access the SWAAD web app.