- 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 :)
mkdir my-flask-projects
cd my-flask-projects
python -m venv flask-venv
source flask-venv/bin/activate
git clone https://github.com/josephjguerra/flask-starter-site.git
pip install peewee
pip install flask
pip install flask-login
pip install flask-bcrypt
pip install flask-wtf
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
- learn more about flask
- expand this starter site to prototype your next big idea
- try connecting a real database
- host your project on:
- pythonanywhere - my preference
- Heroku - also straightforward with heroku toolbelt
- DigitalOcean
- AWS
- the sky's the limit!
control + C
will stop the app from runningdeactivate
in yourmy-flask-projects
directory to stop your virtual environment