Cloudflare Worker API to add basic auth and custom filtering for a blockchain RPC endpoint.
Before starting, you must have logged in to Cloudflare using Wrangler.
- Clone the repository
git clone https://github.com/eabz/auth-rpc && cd auth-rpc
- Start de worker in local mode.
yarn start
for production
yarn deploy
start
: runs your application onlocalhost:8787
.deploy
: deploys the application to production.format
: runs the prettier fixes for all the files.lint
: runs the linter in all components and pages.
Check package.json for other useful scripts.
Developers are expected to follow contribution guidelines to keep the codebase efficient, readable, and standardized. Contribution guidelines are clearly laid out so developers and contributors can submit their work without much revision, resulting in faster development and more useful contributions. These guidelines are specified through the eslint
modules.