RecipeHub is a professional Python Backend API for managing and sharing recipes. Built with Flask, it features secure user authentication and image processing capabilities.
- Secure Authentication: User login and registration using JWT (JSON Web Tokens).
- Recipe CRUD: Full support for creating, reading, updating, and deleting recipes.
- Image Processing: Automatic generation of thumbnails, grayscale (BW), and blurred versions of recipe photos.
- Database Management: Structured data handling with SQLAlchemy models.
- Framework: Flask
- Authentication: Flask-JWT-Extended
- Database: SQLite & SQLAlchemy
- Security: Bcrypt for password hashing
- Environment: Python 3.x
- Clone the repository:
git clone https://github.com/Elky-S/RecipeHub.git
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python app.py
/routes - API endpoints (Auth, Recipes, General). /static/images - Uploaded and processed recipe images. models.py - Database schema and User/Recipe models. app.py - Main application entry point and configuration.
This project uses python-dotenv to manage sensitive information.
- JWT Secret Key: Stored in a local
.envfile (not uploaded to GitHub) to prevent unauthorized token synthesis. - Debug Mode: Hardcoded for development; should be disabled or managed via environment variables in a production environment.