A minimal Flask web application, served by Gunicorn, and ready to deploy on Railway or Vercel.
├── main.py # App entry point and route definitions
├── templates/
│ └── index.html # Jinja2 HTML template
├── static/
│ ├── css/styles.css # Custom styles
│ └── favicon.ico # Site icon
├── requirements.txt # Pinned Python dependencies
├── .python-version # Python version for Railway
├── 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.