Skip to content

basic flask site with user login and bootstrap for rapid python web app prototyping

Notifications You must be signed in to change notification settings

josephjguerra/flask-starter-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-starter-site

  • basic flask site with user login and bootstrap for rapid python web app prototyping
  • check out Treehouse for some great flask tutorials. They eventually led me to this repo!
  • these steps are for Mac OS X
  • this uses a SQLite and peewee. A good tool for prototyping. Probably not production :)

make a virtual environment

  • mkdir my-flask-projects
  • cd my-flask-projects
  • python -m venv flask-venv
  • source flask-venv/bin/activate

get the code into a directory

  • git clone https://github.com/josephjguerra/flask-starter-site.git

get the required packages

  • pip install peewee
  • pip install flask
  • pip install flask-login
  • pip install flask-bcrypt
  • pip install flask-wtf

see the app!

  • cd flask-starter-site
  • python app.py
  • go to http://127.0.0.1:5000/ to see the starter site!
  • register a user (or a few)
  • login

now what?

  • learn more about flask
  • expand this starter site to prototype your next big idea
  • try connecting a real database
  • host your project on:
  • the sky's the limit!

cleaning up

  • control + C will stop the app from running
  • deactivate in your my-flask-projects directory to stop your virtual environment

About

basic flask site with user login and bootstrap for rapid python web app prototyping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published