Web application with NGINX frontend and Python Flask backend. Enter your name and get a personalized greeting with an eye-catching popup notification! 🎉
- Frontend: Static website served by NGINX
- Backend: Python FastAPI REST API
- Features:
- Name input with greeting display
- Animated popup notifications
- Local storage persistence
- Responsive design
From this folder:
-
Start both services:
docker compose up --build
-
Open in browser:
- Frontend: http://localhost:8080
- Backend API: http://localhost:5000/health
-
Stop:
docker compose down
docker build -t hello-frontend -f frontend/frontend.Dockerfile frontend
docker run --rm -p 8080:80 hello-frontenddocker build -t hello-backend -f backend/backend.Dockerfile backend
docker run --rm -p 5000:5000 hello-backendPOST /api/greet- Get personalized greeting- Body:
{"name": "Your Name"} - Response:
{"success": true, "message": "Hello Your Name! 👋"}
- Body:
GET /health- Health check endpoint