Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita9bcc9c

Browse files
authored
Merge pull requestalexmojaki#128 from alexmojaki/readme
updated README to include Windows instructionsalexmojaki#123
2 parents21cf2d3 +4fee218 commita9bcc9c

File tree

1 file changed

+33
-16
lines changed

1 file changed

+33
-16
lines changed

‎README.md‎

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -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>
@@ -61,7 +61,7 @@ order:
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+
102102
Several 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/
140140
4. Skip the following two steps, everything should be running now.
141141
3. In the`backend` folder:
142142
1. 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+
147157
3. 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`.
149160
4. 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+
152169
3. Run`npm start` to start the frontend development server.
153170
5. Go tohttp://localhost:3000/accounts/login/ and login with the email "admin@example.com" and the password "admin".
154171
6. You should be redirected tohttp://localhost:3000/toc/ and see the Table of Contents.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp