Skip to content
/ flasky Public
forked from miguelgrinberg/flasky

Companion code to the book "Flask Web Development" revised by Harry Wang for teaching web application development

License

Notifications You must be signed in to change notification settings

udmis/flasky

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flasky

This repository contains the source code examples for the book Flask Web Development.

The commits and tags in this repository were carefully created to match the sequence in which concepts are presented in the book. Please read the section titled "How to Work with the Example Code" in the book's preface for instructions.

This repo is revised by Harry Wang for teaching Web Application Development.

Setup Instructions:

Make sure to use Python version 2.7.x.

Install virtualenv if needed.

If you do not have a virtual environment yet on the project folder, set it up with:

$ virtualenv venv

Then activate the virtual environment

$ source venv/bin/activate

Install packages (use dev.txt during development)

$ pip install -r requirements/dev.txt

Deploy: this create the tables in the database and populate the init data

$ python manage.py deploy

Run the server

$ python manage.py runserver

Run the tests (you need to install Chrome and chromedriver:brew install chromedriver)

$ python manager.py test

Then go to browser and type in the address bar

127.0.0.1:5000

To use the shell during development:

$ python manage.py shell

About

Companion code to the book "Flask Web Development" revised by Harry Wang for teaching web application development

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 81.2%
  • HTML 16.7%
  • CSS 1.7%
  • Mako 0.4%