This is a Flask web application that allows you to maintain a database of cafes. You can add new cafes with their corresponding details such as opening and closing times, coffee rating, wifi rating, and power outlet rating.
- Display a list of all cafes in the database.
- Add new cafes to the database through a web form.
-
Clone the repository
git clone https://github.com/yourusername/flask-cafe-database.git cd flask-cafe-database
-
Setup a virtual environment (optional but recommended)
On MacOS/Linux:
python3 -m venv venv source venv/bin/activate
On Windows:
py -3 -m venv venv venv\Scripts\activate
-
Install the requirements
pip install -r requirements.txt
-
Run the application
python app.py
Then, open your web browser and go to
http://127.0.0.1:5000/
to see the application in action.
- Flask - A lightweight WSGI web application framework.
- Flask-WTF - Simple integration of Flask and WTForms.
- Flask-Bootstrap - Ready-to-use Bootstrap for Flask.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Please replace "yourusername" with your actual GitHub username in the clone command if you want to use this readme as a template for your GitHub project.