"The Cocktail Book" is a web application that allows users to discover and explore their favorite cocktails. Users can search for cocktails by name or ingredient, view detailed information, including ingredients and preparation instructions, and even save their favorite cocktails for later. The application utilizes React, Firebase for user authentication and database storage, and the Cocktail DB API for cocktail data.
Before you replicate this project, make sure you have the following prerequisites:
Clone the repository:
git clone [https://github.com/[your-username]/[your-repo].git](https://github.com/GeorgiosDev/cocktail-book/blob/main/README.md)
Install dependencies:
npm install
Configure Firebase:
Create a .env
file in the project root directory and add your Firebase configuration without revealing your environment variables:
REACT_APP_FIREBASE_API_KEY=[Your API Key]
REACT_APP_FIREBASE_AUTH_DOMAIN=[Your Auth Domain]
REACT_APP_FIREBASE_PROJECT_ID=[Your Project ID]
REACT_APP_FIREBASE_STORAGE_BUCKET=[Your Storage Bucket]
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=[Your Messaging Sender ID]
REACT_APP_FIREBASE_APP_ID=[Your App ID]
Additionally, if you want to use the Cocktail DB API, you can add your API key to the .env
file:
REACT_APP_RAPIDAPI_KEY=[Your RapidAPI Key]
Cocktail Search: Enter the name or ingredient of a cocktail in the search bar and click the "Search" button to find cocktails.
Cocktail Details: Click on a cocktail to view its details, including ingredients and preparation instructions.
User Authentication: Create an account or log in to save your favorite cocktails.
Save Favorites: When logged in, click the "Save to Favorites" button on a cocktail detail page to add it to your favorites.
"The Cocktail Book" can be configured to use the Cocktail DB API to fetch cocktail data. You can obtain your API key by signing up on the RapidAPI platform and subscribing to the API.
This project is licensed under the MIT License - see the LICENSE.md file for details.