Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/01110011011101010110010001101111/tigergraph_cosmos_template

Template for TigerGraph and Cosmograph Projects with pyTigerGraph, Fast API, and Cosmos
https://github.com/01110011011101010110010001101111/tigergraph_cosmos_template

cosmograph data-visualization tigergraph

Last synced: 18 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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
2. Create a virtual environment `python3 -m venv venv` and activate it `source venv/bin/activate/`
3. Install the libraries:
```
pip install pyTigerGraph fastapi uvicorn
```
4. Modify the connection parameters to your host, graph name, and password in [config.py](config.py)
5. Modify the VERTEX_TYPE and EDGE_TYPE in [config.py](config.py)
6. Run the server
```
uvicorn main:app --reload
```

### Run Cosmos
7. Install packages:
```
npm install
```
8. Build and run the code:
```
npx parcel build index.html
npx parcel index.html --open
```
9. View the graph at [http://localhost:1234](http://localhost:1234)!

## First Attempt Result:

![Graph](data_viz.png)