A beginner-friendly web application built with Python and Flask to demonstrate web development concepts. This app serves a dynamic web page with interactive features and provides a JSON API endpoint for learning full-stack development fundamentals.
- Python 3.7 or higher
- pip (Python package installer)
-
Clone the repository
git clone https://github.com/new2code/python-web-application cd python-web-application
-
Create virtual environment
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
Note: If you see a warning about upgrading pip, run:
python3 -m pip install --upgrade pip
-
Run the application
python app.py
-
View in browser
python-web-application/
├── app.py # Main Flask application
├── requirements.txt # Python dependencies
├── templates/
│ └── index.html # Home page template
└── static/
├── styles.css # Stylesheet
└── script.js # JavaScript
- Beginner-friendly Flask web server
- HTML templating with Jinja2
- Static file serving (CSS, JavaScript)
- JSON API endpoint
- Interactive frontend