-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding section to documentation explaining how to run the web user in…
…terface
- Loading branch information
1 parent
8bd8f1a
commit b365f4b
Showing
5 changed files
with
72 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,61 @@ | ||
!!! note | ||
This functionality is currently under development. | ||
|
||
# User Interface | ||
|
||
Neurotech Development Kit has a built-in web server that allows you to create and run simulations using your web browser. | ||
|
||
|
||
<figure markdown> | ||
![Web UI](./images/web_ui.png){ width="900" } | ||
</figure> | ||
|
||
|
||
|
||
## Running | ||
|
||
There are multiple ways of running the web server, you can choose between: | ||
|
||
### Pip | ||
|
||
1. Follow the [installation tutorial](installation.md) | ||
|
||
1. Open a terminal and execute | ||
|
||
``` | ||
ndk-ui | ||
``` | ||
|
||
### Virtual environment | ||
|
||
1. Follow the *running locally* section of the [contributing tutorial](contributing.md#running-locally) | ||
|
||
1. Open a terminal in the project location and run the following command | ||
|
||
``` | ||
make web-development | ||
``` | ||
|
||
### Docker | ||
|
||
1. Install [Docker](https://docs.docker.com/engine/install/#desktop). | ||
|
||
1. Open a terminal and run the following command: | ||
|
||
``` | ||
docker run -p 5000:5000 -w "/ndk" -it ghcr.io/agencyenterprise/neurotechdevkit:latest python src/web/app.py | ||
``` | ||
|
||
|
||
## Using | ||
|
||
After executing the last step of any of the options described above you will be able to open the address `http://127.0.0.1:5000/` in your browser. | ||
|
||
You should be able to select one of the pre-defined scenarios and see its layout: | ||
|
||
|
||
<figure markdown> | ||
![Web UI First](./images/web_ui_first.png){ width="900" } | ||
</figure> | ||
|
||
|
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