A *very* simple flask app script for DevOps DayCamp 2015
Python HTML CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
templates
.gitignore
.travis.yml
LICENSE
README.md
requirements.txt
script.py
test.py

README.md

A Tinsy Winsy Python Flask App

Installation/Usage

$ git clone https://github.com/DevOpsBootcamp/tinsy-flask-app.git
$ cd tinsy-flask-app
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ ./script.py
* Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)

Open your browser to http://daycamp.osuosl.org:<Your VM's HTTP Port>

Woooo~ you did it, now we get to hacking!


Now What?

Now that you have finsihed the hands-on activity, you have a few options. If you would like to investigate Python and Flask further take a look at the Flask Quickstart Guide

Suggested TODO:

  1. Skim the quickstart.
  2. Add another page (localhost:$MYPORT/mypage for example).
  3. Display a randomly chosen message from a list each time the user loads the page.
  4. Link to the new page from your original page.

If you're less than confident in your Python skills, check out the The Python 2.7 Tutorial


Alternatively, if you are also more interested in the version control side of the activity, make a fork of this repo.

Suggested TODO:

  1. Make a fork of this repository.
  2. Make changes of your own.
  3. Push changes up to your personal repository.
  4. ???
  5. Profit.