We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec5662 commit 36b8b0dCopy full SHA for 36b8b0d
2 files changed
README.md
@@ -165,6 +165,12 @@ For information on spinning up your own dev Web API server locally, have a look
165
166
DEVELOPMENT=1 uvicorn readalongs.web_api:web_api_app --reload
167
168
+or
169
+
170
+ ./run-web-api.sh
171
172
+Note that the production command line for the Web API is defined in [Procfile](Procfile) and documented in [web\_api.py](readalongs/web_api.py).
173
174
#### /langs
175
176
To query a list of available languages in the ReadAlong Studio API, send a GET request to https://readalongs-studio.herokuapp.com/api/v1/langs
run-web-api.sh
@@ -0,0 +1,18 @@
1
+#!/bin/bash
2
3
+# Convenience script to launch the Web API in development mode.
4
+# Do not use in production! (See ../Procfile for the prod launch command.)
5
+#
6
+# Usage:
7
+# pip install uvicorn
8
+# /path/to/run-web-api.sh
9
10
+# Further documentation is in readalongs/web_api.py
11
12
+# Move to the code root directory, so that --reload works correctly.
13
+CODE_ROOT_PATH=$(dirname $(realpath $0))/readalongs
14
+cd $CODE_ROOT_PATH
15
16
+# Launch the Web API with the --reload option, which will automatically reload
17
+# the server whenver the code changes.
18
+DEVELOPMENT=1 uvicorn readalongs.web_api:web_api_app --reload
0 commit comments