A simple Python Flask backend starter template with frontend demo showing health checks and ping-pong communication.

This template contains the files needed to deploy a Python backend with frontend on Bunetic:
main.py
- Flask HTTP server with health and ping endpointsrequirements.txt
- Python dependencies (Flask and Gunicorn)index.html
- Frontend demo with health check and ping-pong buttonsProcfile
- Tells Bunetic how to start the Python application (web: gunicorn main:app
)
- Health Check Endpoint (
/health
) - Shows server status, uptime, and timestamp - Ping Endpoint (
/ping
) - Returns "pong" with server info and timestamp - Frontend Demo - Simple HTML interface to test both endpoints
- Response Time Measurement - Shows exact milliseconds for each request
- CORS Enabled - Ready for cross-origin requests
- Production Ready - Uses Gunicorn WSGI server for deployment
Returns server health status:
{
"status": "healthy",
"timestamp": "2025-09-29T12:00:00Z",
"uptime": "5h30m15s"
}
Returns pong response:
{
"message": "pong",
"timestamp": "2025-09-29T12:00:00Z",
"server_id": "python-flask-v1"
}
- Python requires dependencies -
requirements.txt
defines Flask and Gunicorn for deployment - WSGI server needed - Gunicorn provides production-ready web server
- Flask application -
main.py
creates endpoints and serves static files - Frontend included -
index.html
demonstrates the backend functionality - Procfile defines startup - Bunetic reads this to launch Gunicorn with Flask app