Intro to Flask
Before we get started buildling with flask we need to setup our development environment.
- Install Python
- Install virtualenv
- Install virtualenvwrapper or virtualenvwrapper-win
- Create a virtual environment
- Install flask
- Run our flask project
- Checkout the next branch
1. Install Python
2. Install virtualenv
$ pip install virtualenv
3. Install virtualenvwrapper or virtualenvwrapper-win
virtualenv wrappers make it easy to manage multiple environments and can make iterating on project easy.
4. Create a virtual environment
$ mkvirtualenv helloworld
cd into root of project
$ setprojectdir .
$ deactivate
$ workon helloworld
5. Install flask
Now we need flask for our first website!
$ pip install flask
6. Run our flask project
python hello.py
* Running on http://localhost:5000/
7. Checkout the next branch
$ git pull origin hello
Log in or sign up for Devpost to join the conversation.