A Flask-based web application that allows users to list available ingredients and find possible recipes.
- Add ingredients via a modal form
- View all stored ingredients on a separate page
- Remove ingredients using a dropdown selection modal
- PostgreSQL as the database (setup separately)
- Bootstrap for styling
- Configuration managed via
config.py .gitignoreincluded to prevent unnecessary files from being tracked
Ensure you have the following installed:
- Python 3.x
- PostgreSQL (Database setup in a separate repository)
- Virtual environment (
venv) - Docker (if using PostgreSQL in a container)
- Git (for version control)
- Clone the Repository
git clone git@github.com:BenDowswell/flask.git cd your-flask-repo - Create a Virtual Environment
python -m venv .venv source .venv/bin/activate # macOS/Linux # or .venv\Scripts\activate # Windows
- Install Dependencies
pip install -r requirements.txt
- Configure the Database
The database setup is in a separate repository. Follow its README for setting up PostgreSQL. https://github.com/BenDowswell/Database The database setup is in a separate repository. Follow its README for setting up PostgreSQ Create a .env file (if needed) or update config.py with your database credentials: DATABASE_URL=postgresql://username:password@localhost:5432/yourdbname