-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move optional client endpoint to /, bundle example client in package, update documentation and setup.py with scripts
- Loading branch information
1 parent
c8f56ec
commit 68f5460
Showing
15 changed files
with
163 additions
and
65 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,57 @@ | ||
# Davidia development | ||
|
||
To get started with Davidia development, create a conda environment called `davidia` | ||
|
||
### `conda env create --file environment.yml` | ||
|
||
Activate it: | ||
|
||
### `conda activate davidia` | ||
|
||
Install Typescript dependencies (read pnpm's [installation guide](https://pnpm.io/installation), if needed) | ||
|
||
### `pnpm install` | ||
|
||
Build web client | ||
|
||
### `pnpm build` | ||
|
||
## Running Python plot server | ||
|
||
From the top level of the repository, you can run: | ||
|
||
### `cd server && uvicorn --factory davidia.main:create_app` or `PYTHONPATH=server python server/davidia/main.py -c` | ||
|
||
Open [localhost:8000](http://localhost:8000) to view it in the browser. Now test plot server with, | ||
|
||
### `PYTHONPATH=server python server/demos/simple.py` | ||
|
||
## Benchmarking the plot client | ||
|
||
Set the environment variable `DVD_BENCHMARK` as `on` or add a `-b` argument: | ||
|
||
### `DVD_BENCHMARK=on PYTHONPATH=server python server/davidia/main.py` | ||
### `PYTHONPATH=server python server/davidia/main.py -c -b` | ||
|
||
Run the script to trigger benchmarks: | ||
|
||
### `PYTHONPATH=server python server/demos/benchmark.py` | ||
|
||
See its builtin help using the `-h` argument. | ||
|
||
## Storybook | ||
|
||
View the Storybook [here](https://diamondlightsource.github.io/davidia). | ||
|
||
To build and run the Storybook locally: | ||
|
||
### `pnpm build:storybook` | ||
### `pnpm start:storybook` | ||
|
||
## Documentation | ||
|
||
View the documentation [here](https://diamondlightsource.github.io/davidia/typedocs/index.html). | ||
|
||
## API documentation | ||
|
||
View the API documentation [here](https://diamondlightsource.github.io/davidia/?path=/docs/api-documentation--docs). |
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
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
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
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
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
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
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
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
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
Empty file.
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,3 @@ | ||
from .simple import run_all_demos | ||
|
||
run_all_demos() |
File renamed without changes.
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
Oops, something went wrong.