Skip to content

Commit 466a126

Browse files
committed
update
1 parent fe6ae3c commit 466a126

File tree

2 files changed

+63
-5
lines changed

2 files changed

+63
-5
lines changed

chartlets.js/README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,43 @@ This is the JavaScript/React library of the framework.
1515

1616
For details refer to the [documentation](https://bcdev.github.io/chartlets/).
1717

18-
## Run the demo UI
18+
## Run demo server
19+
20+
Create environment and install library
21+
22+
``` bash
23+
cd ${project}/chartlets.py
24+
mamba env create
25+
conda activate chartlets
26+
pip install -ve .
27+
```
28+
29+
Run demo server
30+
31+
``` bash
32+
cd ${project}/chartlets.py/demo
33+
python -m server.main
34+
```
35+
36+
## Run demo UI
37+
38+
Install common dependencies
1939

2040
``` bash
41+
cd ${project}/chartlets.js
2142
npm install
43+
```
44+
45+
Build the library
46+
47+
``` bash
48+
cd ${project}/chartlets.js/packages/lib
49+
npm run build
50+
```
51+
52+
Run the demo UI
53+
54+
``` bash
55+
cd ${project}/chartlets.js/packages/demo
2256
npm run dev
2357
```

chartlets.py/README.md

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,41 @@ For details refer to the [documentation](https://bcdev.github.io/chartlets/).
1414

1515
## Run demo server
1616

17-
Create environment
17+
Create environment and install library
1818

1919
``` bash
20+
cd ${project}/chartlets.py
2021
mamba env create
2122
conda activate chartlets
2223
pip install -ve .
2324
```
2425

25-
Run server
26+
Run demo server
2627

2728
``` bash
28-
cd demo
29-
python -m demo.server.main
29+
cd ${project}/chartlets.py/demo
30+
python -m server.main
31+
```
32+
33+
## Run demo UI
34+
35+
Install common dependencies
36+
37+
``` bash
38+
cd ${project}/chartlets.js
39+
npm install
40+
```
41+
42+
Build the library
43+
44+
``` bash
45+
cd ${project}/chartlets.js/packages/lib
46+
npm run build
47+
```
48+
49+
Run the demo UI
50+
51+
``` bash
52+
cd ${project}/chartlets.js/packages/demo
53+
npm run dev
3054
```

0 commit comments

Comments
 (0)