Skip to content
Deploying Flask App on Linode
HTML Python CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
flask_app
.gitignore
FlaskDeployment.md
README.md

README.md

Simple Flask CRUD Web Application

This is a very simple Flask Application where user can log in and create posts.

Application Breakdown

This is the breakdown of a fairly simple Flask Application using a SQLite database

Flask-on-Linode
│   README.md
│   FlaskDeployment.md
│   .gitignore
│
└───flask_app
│   │   __init__.py
│   │   forms.py
│   │   models.py
│   │   routes.py
│   │   requriments.txt
│   │   site.db
│   │
│   └───static
│   │   │   ...
│   │
│   └───templates
│   │   │   ...

Flask Frameworks

These are the Flask libraries used in this Project. You'll find these in the requirements.txt file.

Deploying Locally

Lets walk through setting up your development environment and deploying this application on your local machine

  1. Install Python, pip, and virtualenv
  1. Clone this repo and CD into the projects directory
git clone https://github.com/abalarin/Flask-on-Linode.git flask_app_project
cd flask_app_project
  1. Create and activate a virtualenv
virtualenv venv
source venv/bin/activate
  1. Install packages
pip install -r flask_app/requirements.txt
  1. Create Flask environment variables
export FLASK_APP=flask_app/__init__.py
export FLASK_ENV=development
  1. Run it
flask run

Next Steps

You can’t perform that action at this time.