The instructions given in the parent directory already includes as part of it building the client front-end app into build directory.
However, if you want to build and run the client separately
cd <to_this_dir>
yarn install
yarn run build
The app is fully functional offline after the initial page load, except for the features that inherently require internet e.g. maps. The build process creates static files that can be accessed by directly opening build/index.html in the browser. The app will still require dataset files to be served.
The web-client expect the dataset files to be downloadable at /files
, with an autoindex JSON API conforming to NGINX JSON autoindex output standards for browsing the data directories at /files/<path>
.
- Build the app
- Make the dataset files browsable and downloadable
- Static-serve build directory containing the app from your server.
OdoViz supports customizing existing parsers and allows adding parsers for new datasets with ease. For more details, please refer to the parsers page.
# keep the server running in another terminal / background
cd <to_this_dir>
yarn install
yarn start
This should start a HMR dev server on http://localhost:3000. File requests will be proxied to the server running at http://localhost:3001, check package.json to edit this setting.
The changes made to the client code will now reflect on the dev server on-the-go.
If you would like the changes to be made public on this repo, please follow the instructions given in CONTRIBUTING.md. Contributions are very welcome!
More information about extensions such as Analyze Distances Extension and Analyze Locations Extension are provided in the respective extension source code directories. You can add new extensions to src/extensions/extensions.js copying the same structure of the existing extensions.