Overview
This is a Flask-based URL shortener that demonstrates fundamental web development concepts including:
-
HTTP methods (GET/POST)
-
Form handling
-
URL routing
-
Data storage (in-memory)
-
Basic error handling
-
Template inheritance
-
Responsive web design
url_shortener/
├── app/ # Main application package
│ ├── __init__.py # Flask application initialization
│ ├── routes.py # URL routing and business logic
│ └── templates/ # HTML templates
│ ├── base.html # Base template with shared layout
│ └── index.html # Main page template
## How to Run the Project
1. Install Flask:
```bash
pip install flask
- Run the application:
python run.py
- Open http://localhost:5000 in your browser
└── run.py # Application entry point