8000 GitHub - lassemand/ccdexplorer-site
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lassemand/ccdexplorer-site

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish DockerHub image

CCDExplorer Site

The site. Oldest codebase, and it shows.

The site is built on FastAPI, with data stored in a MongoDB replicaset with 3 members for data redundancy. Data is fetched from 2 sets of Concordium nodes (2 for mainnet, 2 for testnet), using its GRPC interface. It retrieves data using a custom Python GRPC SDK.

Getting Started

Prerequisites

  1. MongoDB (successfully tested on version 6+). You will need to know the Mongo URI and place that in an ENV.
  2. Concordium Nodes for mainnet and testnet (you will need to know the IP and ports for both mainnet and testnet)

Install and Run

  1. Git clone, make a venv (python3 -m venv .venv) and activate it.
  2. Install dependencies (in the venv)
pip install -r requirements.txt
  1. Set ENV variables Copy the .env.sample to .env and adjust the MongoDB and GRPC values if needed. These defaults assume MongoDB and a mainnet and testnet node are running on your local machine.
  2. Start FastAPI process
uvicorn app.main:app --loop asyncio --host 0.0.0.0 --port 8000
  1. Open a browser window at http://localhost:8000.
  2. [CAVEAT]: This site depends heavily on data being present in the expected collections. With an ampty DB, the above runs the frontpage of the site. Still working on a feasible way to deliver a pre-filled test db or script to generate this.

Deployment

A Dockerfile is supplied that builds the project into a Docker image (this is the image that is being used on CCDExplorer.io).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 52.6%
  • HTML 42.1%
  • JavaScript 5.0%
  • Other 0.3%
0