Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.62 KB

README.md

File metadata and controls

43 lines (37 loc) · 1.62 KB

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