This project contains a simple Flask app and a Django app, containerized with Docker Compose.
A simple Flask web application with the following features:
- Homepage (
/
) displays a"Hello, World!"
message. - User Form Route (
/greet
) accepts a user's name and age, then returns a personalized greeting. - Implements basic error handling for invalid inputs.
A basic Django project with:
- Homepage that displays a list of items (e.g., books, tasks, or products) from a database.
- Admin panel for adding and modifying items.
- A form on the homepage to add new items to the list.
Containerization using Docker:
- Separate
Dockerfile
for both Flask and Django applications. - A
docker-compose.yml
file to manage both services. - Applications are accessible on different local ports:
- Flask:
http://localhost:5000
- Django:
http://localhost:8000
- Flask:
git clone https://github.com/SRCEM-AIM-Class-A/A38_DhruvYadav_FinalAssignment.git
docker-compose up --build
- Flask App: http://localhost:5000
- Django App: http://localhost:8000
-
Python 3.8+
-
Docker & Docker Compose
-
pip (Python package installer)