A minimal Flask web application, served by Gunicorn, and ready to deploy on Railway or Vercel.
- Flask — Python web framework
- Gunicorn — production WSGI server
- Bootstrap 4 — frontend styling
├── main.py # App entry point and route definitions
├── templates/
│ └── index.html # Jinja2 HTML template
├── static/
│ └── css/styles.css # Custom styles
├── requirements.txt # Python dependencies
├── Procfile # Railway / Heroku process definition
└── vercel.json # Vercel deployment config
# Clone the repo
git clone https://github.com/alphasecio/flask.git
cd flask
# Install dependencies
pip install -r requirements.txt
# Start the development server
python main.pyThe app will be available at http://localhost:5000.
- Railway — click the button above, or follow the step-by-step guide.
- Vercel —
vercel.jsonis included for zero-config deployment via the Vercel CLI or GitHub integration.
Add new routes in main.py:
@app.route('/about')
def about():
return render_template('about.html')Add Python packages to requirements.txt and they'll be installed automatically on the next deploy.