Skip to content

Commit f992e11

Browse files
authored
Explicit venv creation
1 parent 96fc529 commit f992e11

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

your-turn/README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,25 @@ Your goal will be to create a REST API built upon fake, static in-memory data to
1111

1212
You can see the types of data you can generate by clicking the folder icon in the type column. Browse through there and choose some sort of fake data and generate 1,000 rows and download it as JSON.
1313

14-
Then create a Python virtual environment, activate it, `pip3 install responder`, and create an `app.py` file.
14+
Then create a Python virtual environment, activate it:
15+
16+
```bash
17+
# On macOS
18+
19+
$ python3 -m venv venv
20+
$ . venv/bin/activate
21+
(venv) $
22+
```
23+
24+
```bash
25+
# On Windows, ensure python maps to python.exe from Python 3
26+
27+
c:\> python -m venv venv
28+
c:\> venv/scripts/activate
29+
(venv) c:\>
30+
```
31+
32+
Then install Responder, `pip3 install responder`, and create an `app.py` file.
1533

1634
Add two API endpoints, one for a list of items in your data set (or to search it) and another to return a single item.
1735

0 commit comments

Comments
 (0)