Quick Start
This page shows the shortest path to run Cloudflare Admin locally.
Requirements
- Node.js 18 or newer
- npm
- A Cloudflare account
- Available credentials for the mail sending API
1. Clone the Repository and Install Dependencies
bash
git clone https://github.com/zeroojs/cloudflare-admin.git
cd cloudflare-admin
npm install2. Prepare Worker Configuration
Regular variables are already defined in wrangler.worker.jsonc. Put local secrets in .dev.vars:
txt
MAIL_API_TOKEN=replace-with-local-mail-api-token
MAIL_API_CUSTOM_AUTH=replace-with-local-mail-api-custom-authYou can also adjust SUPER_ADMIN_EMAIL, MAIL_API_URL, or rate limit settings in wrangler.worker.jsonc.
3. Start the Frontend
bash
npm run dev4. Start the Worker
bash
npm run dev:worker5. Start the Documentation Site
bash
npm run docs:dev6. Optional Checks
bash
npm run check
npm run test:runRecommended Terminal Setup
npm run devnpm run dev:workernpm run docs:dev
Production Addresses
- Frontend:
https://cfadmin.letssl.cn/ - API:
https://cloudflare-admin-worker-api.letssl.cn
Next
- Read Architecture
- Continue to Deploy to Cloudflare