This is a Flask web application project with the following file structure:
my-flask-app
├── app
│ ├── __init__.py
│ ├── routes.py
│ ├── models.py
│ ├── templates
│ │ ├── base.html
│ │ ├── home.html
│ │ └── about.html
│ └── static
│ ├── css
│ │ └── main.css
│ └── js
│ └── main.js
├── config.py
├── requirements.txt
├── run.py
├── README.md
└── .vscode
├── settings.json
└── launch.json
- Clone the repository:
git clone https://github.com/your-username/my-flask-app.git
- Navigate to the project directory:
cd my-flask-app
- Install the required packages:
pip install -r requirements.txt
- Run the application:
python run.py
- Open a web browser and go to
http://localhost:5000/
to view the home page. - Click on the "About" link in the navigation bar to view the about page.
The config.py
file contains configuration settings for the application.
The app
directory contains the Flask application code. The templates
directory contains the HTML templates used by the application. The static
directory contains the CSS and JavaScript files used by the application.
This project is licensed under the MIT License. See the LICENSE
file for details.