A blockchain explorer for Constellation Network.
External Dependencies:
- Block Explorer API: native DAG block explorer API
Run Locally:
- Open a command prompt in the directory
source/client - Run the command
npm install - Verify the
.envfile and change the API URLs if needed - Run the command
npm run dev
- .NET 8
- Microsoft SQL Server (using entity framework, so other database technologies can be used with minimal configuration changes)
- Container Apps (Docker)
External Dependencies:
- IP Geolocation API: used to get the geolocation of validator nodes
- Block Explorer API: native DAG block explorer API
- Metagraph API Endpoints
Run Locally:
- Make sure the .NET 8 SDK is installed
- If you only plan to run the worker/database, you can skip steps 3 & 4 (as these are needed for hosting the API locally)
- Create local development certificates using
dotnet dev-certsCLI - Create a new file
docker-compose.override.local.ymlnext to the existing docker-compose file with the reference to the certificates, example:
services:
dagscan.api:
environment:
- Kestrel__Certificates__Default__Path=/app/.aspnet/https/aspnetcore-localhost.pfx
- ASPNETCORE_Kestrel__Certificates__Default__Password=mypassword
volumes:
- ~/.microsoft/usersecrets:/app/.microsoft/usersecrets:ro
- ~/.aspnet/dev-certs/https:/app/.aspnet/https:ro
- Open a command prompt in the directory
source/servicesand run the docker-compose command (make sure the docker service is running):
docker-compose -f docker-compose.yml -f docker-compose.override.local.yml up
- You can navigate to
https://localhost:60016/swagger/index.htmlto view and test the api endpoints - You can navigate to
https://localhost:60016/hangfire/to view and trigger scheduled jobs for the worker
The apps are hosted on Microsoft Azure and are released through GitHub Actions.