Skip to content

aon/block-explorer-auth-api

Repository files navigation

Double zero block explorer proxy

Proxy meant to add authorization in data returned by explorer.

Prepare

The proxy can be configured with a few environment variables:

  • NODE_ENV: environment for node js. It can be production or development.
  • SERVER_PORT: port where the proxy is going to run.
  • BLOCK_EXPLORER_API_URL: url for the real block explorer api.
  • SESSION_SECRET: 32 bytes expressed in hex.
  • CORS_ORIGIN: url where the app is going to run.

For development this can ben easily configured by doing:

cp example.env .env

Dev

To run the proxy in development mode:

yarn dev

Build

yarn build

Test

yarn test

Prod start

yarb start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published