-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adrian Ariton
authored and
Adrian Ariton
committed
Nov 15, 2023
1 parent
6876592
commit 8b0005c
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Building | ||
|
||
From the root folder of the app run: | ||
```sh | ||
jupyter-book build --all book | ||
python3 ./book/chattutor_setup/install.py # adding the chattutor script to all the html files | ||
``` | ||
|
||
CORS needs to allow the url to make requests!! | ||
For now this can only be tested locally. | ||
|
||
# Testing locally | ||
|
||
Checkout chattutor.config.js | ||
|
||
- Start an instance of the main branch at port `5000` at `localhost` | ||
- Go to config and set **TEST_MODE** to true and **SERVER_PORT** to `5000` | ||
- Run the following commands to build the notebook and to add chattutor | ||
one in venv (checkout main README for info on that) | ||
```sh | ||
jupyter-book build --all book | ||
python3 ./book/chattutor_setup/install.py # adding the chattutor script to all the html files | ||
``` |