Skip to content

nanodrop/nanodrop-api

Repository files navigation

NanoDrop API

NanoDrop Faucet REST API.

Stack

This project is made with Typescript and was designed to run on the EDGE. It implements:

  • Cloudflare Workers: a low cost, fast and scalable serverless environment.
  • Durable Objects: allow us to cache Proof of Work with low latency in-memory.
  • Hono: A small, simple, and ultrafast web framework for the Edges.

Running locally

pnpm install
pnpm dev

Deploy

First, authenticate with your Cloudflare account:

pnpm wrangler login

Set production secrets:

pnpm wrangler secret put PRIVATE_KEY
...

Finally, deploy it:

pnpm run deploy