Hint: the following installation commands assume you have Node.js and npm (included in Node.js) installed and have it available through PATH (when using Windows).
The following code can be run on windows from Git Bash Terminal:
git clone https://github.com/graphstatevis/codebase.git
cd codebase
./run-development.sh
GraphStateVis is a frontend-only application and does not use a database or require a backend at this point.
cd app
npm install
npm run development
The default URL of the project after running the app is typically http://localhost:8082/
.
The actual location on your machine will be printed to the console after running the above command.
How to create a deployable version (e.g., on a server as here)
The following command must be executed in folder ./app/
to transpile all TypeScript files into a deployment version which will be available in the ./build
folder.
npm run production
By default, the app is reachable from the root folder of a domain: e.g., https://anydomain.xyz/
To change the folder (domain) to e.g. https://anydomain.xyz/graphstatevis/
, the following code must be changed in the repository:
- Open file
./app/webpack.config.ts
- Change variable
publicPath: '/'
to desired path (line 73 of this commit!) topublicPath: '/graphstatevis/'
- Change variable
template: 'public/index.html'
to desired path (line 85 of this commit!) totemplate: 'public/graphstatevis/index.html'
- To use this subfolder in development, all fles in folder
./public
must be copied to the resp. subfolder, here:./public/graphstatevis
- Run
npm run production
(again) - Copy content of folder
./build/
on the webserver into the folderhttps://anydomain.xyz/graphstatevis/
- DONE!
@inproceedings{miller2021graphstatevis,
author = {Matthias Miller and Daniel Miller},
booktitle = {{IEEE} International Conference on Quantum Computing and Engineering ({QCE})},
title = {{GraphStateVis: Interactive Visual Analysis of Qubit Graph States and their Stabilizer Groups}},
year = {2021},
pages = {378--384},
publisher = {{IEEE}},
doi = {10.1109/QCE52317.2021.00057}
}
Released under MIT License. See the LICENSE file for details. The prototype was developed by Matthias Miller from the Data Analysis and Visualization Group at the University Konstanz.