File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 11# Flask Take Home Exercises
22
3+ ## Setup
4+ You must have python3.6 and pip installed. To do this, check out the wiki and the page named "Mac Setup".
5+ First, clone this repository and go into it:
6+ ```
7+ $ git clone https://github.com/hack4impact-uiuc/FlaskTutorial.git
8+ $ cd FlaskTutorial
9+ ```
10+ Then, install ` virtualenv ` and go into it. This allows you to have a virtual environment that for your specific application.
11+ ```
12+ $ pip3 install virtualenv
13+ $ virtualenv -p python3 venv
14+ $ source venv/bin/activate
15+ ```
16+ You will then have a (venv) before the $, meaning that you are now in your virtual environment. Then, install the Flask.
17+ ```
18+ (venv)$ pip3 install Flask
19+ (venv)$ pip3 install requests
20+ ```
21+ You must be in this virtual environment to start this server. To start the server run:
22+ ```
23+ (venv)$ python app.py
24+ ```
25+ To stop the server, do ` Control-C ` . Also, to exit your virtual environment, which is named ` venv ` run:
26+ ```
27+ (venv)$ deactivate venv
28+ ```
29+
30+ ## Exercises
331This creates an application instance
432__ name__ is used to determine the root path of the application folder
533
You can’t perform that action at this time.
0 commit comments