Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/01110011011101010110010001101111/tigergraph_cosmos_template
- Owner: 01110011011101010110010001101111
- Created: 2022-06-16T14:02:02.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-20T13:48:11.000Z (over 2 years ago)
- Last Synced: 2024-10-16T07:56:21.782Z (2 months ago)
- Topics: cosmograph, data-visualization, tigergraph
- Language: TypeScript
- Homepage:
- Size: 28.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)