Skip to content

🍰 A beautiful Flask-based Cake Recipe Web App where users can add, edit, search, and view delicious cake recipes with full CRUD functionality, elegant UI, and automated testing using Pytest.

License

Notifications You must be signed in to change notification settings

Rumaisas-islam/flask-cake-recipe-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Cake World Banner

πŸŽ‚ Cake World – A Flask-Based Cake Recipe Website

A sweet and stylish web application to share, search, and manage your favorite cake recipes.


🍰 About the Project

Cake World is a responsive and beginner-friendly Flask web application that allows users to:

  • Add, edit, view, and delete cake recipes.
  • Search for recipes using keywords.
  • Upload cake images with a smooth, pastel-pink themed UI.

This project is built with Flask, HTML, CSS, and SQLite, keeping simplicity and elegance in mind. Perfect for those learning Python web development or building their first full-stack app.


🌸 Features

  • πŸͺ Add, update, and delete cake recipes
  • 🍫 Upload and display recipe images
  • πŸŽ€ Beautiful pink pastel theme (fully responsive)
  • πŸ” Search bar for quick filtering
  • πŸ”’ Login and Register pages
  • βœ… Tested with pytest (3/3 tests passed)

πŸ“ Project Structure


cake_world_flask/
β”‚
β”œβ”€β”€ app.py
β”œβ”€β”€ users.db
β”œβ”€β”€ .gitignore
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”‚
β”œβ”€β”€ banner.png
β”‚
β”œβ”€β”€ static/
β”‚   β”œβ”€β”€ style.css
β”‚   └── uploads/
β”‚       β”œβ”€β”€ VANILLA.jpg
β”‚       β”œβ”€β”€ Strawberry_Cheesecake.jpeg
β”‚       β”œβ”€β”€ pink_velvet_cake.jpg
β”‚       └── chocolate-rainbow-cake.jpg
β”‚
β”œβ”€β”€ templates/
β”‚   β”œβ”€β”€ base.html
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ add.html
β”‚   β”œβ”€β”€ update.html
β”‚   β”œβ”€β”€ view_recipe.html
β”‚   β”œβ”€β”€ search.html
β”‚   β”œβ”€β”€ login.html
β”‚   └── register.html
β”‚
└── tests/
└── test_app.py


βš™οΈ Installation & Setup

1️⃣ Clone the repository

git clone https://github.com/Rumaisas-islam/flask-cake-recipe-website.git
cd flask-cake-recipe-website

2️⃣ Create a virtual environment

python -m venv venv

3️⃣ Activate the environment

  • Windows:

    venv\Scripts\activate
  • Mac/Linux:

    source venv/bin/activate

4️⃣ Install dependencies

pip install flask pytest

5️⃣ Run the app

python app.py

Then open: πŸ‘‰ http://127.0.0.1:5000/


🧁 Run Tests

To make sure everything works perfectly:

pytest

βœ… All tests should pass:

3 passed in 0.36s

🌐 Live Preview

Take a quick look at the website design πŸ‘‡

Cake World Preview


πŸ“œ License

This project is licensed under the MIT License β€” feel free to use, modify, and share with attribution.


πŸ’– Author

Rumaisa Islam 🌐 GitHub Profile

β€œCrafted with ❀️ for dessert lovers and future web developers.”


🏷️ Tags

flask python cake-recipes web-development html css bakery dessert food-website recipe-app