Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 750 Bytes

README.md

File metadata and controls

39 lines (26 loc) · 750 Bytes

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