Skip to content

trenchmortar/flask-skeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-skeleton

A "hello world" style Flask web server application that (optionally) runs on Heroku. Some notable parts used in this web application are:

  1. Flask
  2. Gunicorn
  3. Flask-Restless
  4. Flask-SQLAlchemy
  5. Flask-Bootstrap
  6. Flask-Script

development

Before you get started you'll need to have Python 2.7+ installed. After, you'll need to also instal virtualenv. Research how to do this for whatever platform you run before continuing.

setup a virtualenv

Create a virtual environment the web application by running the following commands in a terminal.

virtualenv my-venv
source my-venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
python setup.py develop

start the web server

Before you start the web server you should prime the database with a few sample entries.

./manage.py prime_database

Then, start the web server on your local machine using Flask-Manager.

./manage.py runserver

Then, in your browser, navigate to http://127.0.0.1:5000/. You should see something like the following image.

The flask-heroku application running in a web browser.

Then, on your CLI, use curl and jq to inspect the JSON API that follows JSON Schema.

Using curl to inspect the JSON API.

About

A "hello world" style Flask application that uses a few of my favorite plugins.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.2%
  • HTML 8.8%