@@ -41,11 +41,11 @@ needed, the student can get small hints to gradually guide them to the solution:
4141 </tr >
4242 <tr >
4343<td>
44-
44+
4545![ predict_output] ( images/predict_output.png )
4646 </td >
4747 <td >
48-
48+
4949![ hints] ( images/hints.png )
5050 </td >
5151 </tr >
6161 </tr >
6262 <tr >
6363<td>
64-
64+
6565![ solution] ( images/solution.png )
6666</td >
6767<td >
@@ -98,33 +98,33 @@ Common mistakes can be caught and pointed out to the student. This includes spec
9898 </tr >
9999 <tr >
100100<td>
101-
101+
102102Several debuggers are provided, including[ snoop] ( https://github.com/alexmojaki/snoop ) ...
103103 </td >
104104 <td >
105-
105+
106106[ ...birdseye...] ( https://github.com/alexmojaki/birdseye )
107107 </td >
108108 </tr >
109109<tr>
110110<td>
111-
111+
112112![ snoop] ( images/snoop.png )
113113 </td >
114114 <td >
115-
115+
116116![ birdseye] ( images/birdseye.png )
117117 </td >
118118 </tr >
119119 <tr >
120120<td colspan="2">
121-
121+
122122...and[ Python Tutor] ( http://pythontutor.com/ )
123123 </td >
124124 </tr >
125125 <tr >
126126<td colspan="2">
127-
127+
128128![ pythontutor] ( images/pythontutor.png )
129129 </td >
130130 </tr >
@@ -140,15 +140,32 @@ Several debuggers are provided, including [snoop](https://github.com/alexmojaki/
1401404 . Skip the following two steps, everything should be running now.
1411413 . In the` backend ` folder:
1421421 . Ensure the` python ` command points to Python 3.8.
143- 2 . Run` ./setup.sh ` . This will:
144- 1 . Install` poetry ` if needed.
145- 2 . Create a virtualenv and install Python dependencies.
146- 3 . Create a sqlite database, run migrations, and create a user.
143+
144+ 2 . If you are on Linux, run` ./setup.sh ` .
145+
146+ If you are on Windows: (in a Powershell window with "Run as Administrator")
147+
148+ 1 . Run` Set-ExecutionPolicy -ExecutionPolicy Bypass ` to enable running scripts in Powershell.
149+ 2 . Run` .\setup.ps1 ` .
150+
151+ This will:
152+
153+ - Install `poetry` if needed.
154+ - Create a virtualenv and install Python dependencies.
155+ - Create a sqlite database, run migrations, and create a user.
156+
1471573. Activate the virtualenv with `poetry shell`.
148- 4 . Run the backend development server with` ./manage.py runserver ` .
158+
159+ 4. Run the backend development server with `python manage.py runserver`.
1491604 . In the` frontend ` folder:
150- 1 . Ensure you have recent versions of` node ` and` npm ` .
151- 2 . Run` npm install ` to download dependencies.
161+ 1 . Ensure you have version 12 of` node ` and 6 of` npm ` .
162+
163+ If you are on Windows: (in a Powershell window with "Run as Administrator")
164+
165+ 1 . Run` npm install --global windows-build-tools ` .
166+
167+ 2 . Run` npm ci ` to download dependencies.
168+
1521693 . Run` npm start ` to start the frontend development server.
1531705 . Go tohttp://localhost:3000/accounts/login/ and login with the email "admin@example.com " and the password "admin".
1541716 . You should be redirected tohttp://localhost:3000/toc/ and see the Table of Contents.