Template for visualizing TigerGraph data with Cosmograph
- Clone repository and enter the directory of the clone repository
- Create a virtual environment
python3 -m venv venv
and activate itsource venv/bin/activate/
- Install the libraries:
pip install pyTigerGraph fastapi uvicorn
- Modify the connection parameters to your host, graph name, and password in config.py
- Modify the VERTEX_TYPE and EDGE_TYPE in config.py
- Run the server
uvicorn main:app --reload
- Install packages:
npm install
- Build and run the code:
npx parcel build index.html
npx parcel index.html --open
- View the graph at http://localhost:1234!