Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

API for the Gaia-X Testnet stats web app to query blocks, transactions and portal events

License

Notifications You must be signed in to change notification settings

deltaDAO/gaia-x-testnet-statistics-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

block-history-visualization-api

Getting started

Clone the repository and jump into the newly created directory:

git clone git@github.com:deltaDAO/gaia-x-testnet-statistics-api.git
cd gaia-x-testnet-statistics-api

Next we need to take care of the initial setup of the project:

# Install all the dependencies
npm install

# Make sure the ./dist folder exists
mkdir ./dist

# Create a .env file or use the example:
# The PORT .env variable is required to be set
mv .env.example .env

# Make sure npx is installed, as it is used for our commitlint setup
npm install -g npx

If everything is setup correctly, you can start the development environment with docker-compose. Make sure that the Docker daemon is running on your host operating system.

docker-compose up

Default Setup

Credits to the (typescript-express-starter)[https://github.com/ljlm0402/typescript-express-starter#readme] repository at https://github.com/ljlm0402/typescript-express-starter#readme. This repository uses a customized & enhanced version of the Mongoose template.

  • Typesript enabled
  • Prettier setup with husky to follow & enforce code styling standards upon commits
  • Swagger documentation via a ./swagger.yml file, available at [host]/api-docs
  • Dockerfile to be used in development & production environments
  • Quick development setup via docker compose -> docker compose up will serve localhost:3000
  • VSCode Extensions and on-save formatting
  • Sample K8 deployment files for easy MongoDB & Server pod deployments, located at deploy/[mongo/server]-deployment.yaml
  • TODO: Testing setup with jest

About

API for the Gaia-X Testnet stats web app to query blocks, transactions and portal events

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published