Skip to content

Commit 0341007

Browse files
authored
Update README.md
1 parent 54cc015 commit 0341007

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
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
331
This creates an application instance
432
__name__ is used to determine the root path of the application folder
533

0 commit comments

Comments
 (0)