Welcome to the Cocktail API project! This project is a Flask-based web application that allows users to explore and interact with cocktail information retrieved from TheCocktailDB API. Users can search for cocktails by name, sign in or sign up, add drinks to their favorites, leave comments, and more.
Check out the live demo here.
- HTML, CSS, Bootstrap for front-end.
- Python with Flask for the back-end.
- PostgreSQL as the database.
- SQLAlchemy for database ORM.
- Jinja for templating.
- Search Cocktails by Name: Users can search for cocktails by their names.
-
/app
: This directory holds the core files for your Flask application.app.py
: Entry point for the Flask application.forms.py
: Includes forms for user input.models.py
: Contains database models.
-
/templates
: Holds HTML templates for your Flask app.base.html
: Base template with common structure.cocktails.html
: Template for displaying cocktail information.favorites.html
: Template for showing user's favorite drinks.home.html
: Template for the home page.login.html
: Template for user login.register.html
: Template for user registration.search.html
: Template for searching cocktails.
-
/images2
: Stores images used in the project. -
.env
: Configuration file for environment variables, including sensitive data like API keys. -
requirements.txt
: Lists all the dependencies required for your project. -
README.md
: Documentation for your project.
- Clone the repository.
git clone https://github.com/serenkapanoglu/BeABaristaAtHome2.git cd BeABaristaAtHome2 flask run