Recipe Book is an application built with Python Flask, SQLite, jQuery, and Ajax.
Recipe Book is an app designed to help users manage their collection of recipes, providing a convenient way to store, organize, and access your recipes.
Recipe Management: Add, edit, and delete recipes. Each recipe includes details such as ingredients, directions, serving size, and meal category.
- Home: Main page where all recipes and form for adding recipes are displayed (
http://localhost:5000) - Add: Route that is using the POST method and form to add recipe to the database (
http://localhost:5000/add) - Delete: Used by button in table with recipes on the home page, deletes recipe from the database with the DELETE method (example for recipe with id 1:
http://localhost:5000/delete/1) - Edit: Second page with fields for data to update accessed through button table from the home page, all fields need to be filled (
http://localhost:5000/edit) - Update: Route used by the edit page to update the database using the PUT method (example for recipe with id 1:
http://localhost:5000/update/1) - Get: Route to get all recipes or singular recipe by id, used by home page to fill table (to get all:
http://localhost:5000/getand example for recipe with id 1http://localhost:5000/get/1)
- Python 3.10.5 or above
- Git 2.38.0 or above
For Windows:
-
Clone the repository:
git clone https://github.com/dubravkaD/flask-app.git
-
Navigate to the project directory:
cd flask-app -
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
.\venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Start the Flask server:
python app.py
-
Start the Flask server:
python app.py
-
Open a web browser and go to
http://localhost:5000to access the Recipe Book.