Skip to content

pythonstudygroup/simple-flask-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Basic Flask app

This repository contains a simple Flask app.

Look inside app.py to see what's going on.

To get it running:

$ pip install flask
$ python app.py

Exercises

  • Create a form that asks for the user's name and greets them
  • Create a JSON endpoint that returns the current time, and a jQuery front-end that inserts it into a HTML page
  • Use peewee to combine the above:
    • Record the user's name, time they last visited, and visit count
    • Ask the user to 'log in' with their name and increment the counter
    • Display a greeting and the total number of times they have logged in
    • If the total logins meets some arbitrary thresholds, display different messages

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • CSS 1.0%