Skip to content

Template for TigerGraph and Cosmograph Projects with pyTigerGraph, Fast API, and Cosmos

Notifications You must be signed in to change notification settings

GenericP3rson/TigerGraph_Cosmos_Template

Repository files navigation

TigerGraph Cosmos Template

Template for visualizing TigerGraph data with Cosmograph

Quickstart

  1. Clone repository and enter the directory of the clone repository

Set Up the FastAPI Server

  1. Create a virtual environment python3 -m venv venv and activate it source venv/bin/activate/
  2. Install the libraries:
pip install pyTigerGraph fastapi uvicorn
  1. Modify the connection parameters to your host, graph name, and password in config.py
  2. Modify the VERTEX_TYPE and EDGE_TYPE in config.py
  3. Run the server
uvicorn main:app --reload

Run Cosmos

  1. Install packages:
npm install
  1. Build and run the code:
npx parcel build index.html
npx parcel index.html --open
  1. View the graph at http://localhost:1234!

First Attempt Result:

Graph

About

Template for TigerGraph and Cosmograph Projects with pyTigerGraph, Fast API, and Cosmos

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published