Skip to content

alphasecio/flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask

A minimal Flask web application, served by Gunicorn, and ready to deploy on Railway or Vercel.

Deploy on Railway

Stack

Project Structure

├── 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

Run Locally

# 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.py

The app will be available at http://localhost:5000.

Deploy to Railway / Vercel

  • Railway — click the button above, or follow the step-by-step guide.
  • Vercelvercel.json is included for zero-config deployment via the Vercel CLI or GitHub integration.

Extending This Template

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.

About

A minimal Flask web application.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors