Getting Started with VolView
Overview
This guide provides a quick introduction to getting started with the VolView server and viewer. Follow the steps below to set up and run the server, and then explore the remote functionality via the viewer.
Starting the Server
To start the VolView server, you'll need to install Poetry and create a new Python environment.
Navigate to the server directory:
cd ./server/Install the required dependencies using Poetry:
poetry installThe VolView codebase includes several sample APIs located in
server/examples/:example_api.py: A basic set of example endpointsexample_class_api.py: Example endpoints using a class
To run the server with a sample API, use the following command:
cd ./server/
poetry run python -m volview_server -P 4014 ./examples/example_api.py
Running the Viewer
Configure the viewer to connect to the server by copying
.env.exampleto.envand updating the server URL:VITE_REMOTE_SERVER_URL=http://localhost:4014/In a separate terminal from the server terminal, run the following commands to start the viewer application:
npm install
npm run build
npm run previewThe preview server will be available at http://localhost:4173/.