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
- Install Python, pip, and virtualenv
- 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
- Create and activate a virtualenv
virtualenv venv
source venv/bin/activate
- Install packages
pip install -r flask_app/requirements.txt
- Create Flask environment variables
export FLASK_APP=flask_app/__init__.py
export FLASK_ENV=development
- Run it
flask run