AuraDash
Welcome to the comprehensive AuraDash guide. Everything you need to set up, deploy to Cloudflare, configure databases, connect your client website, and run locally in simple, plain language.
How AuraDash Works (Simplified Architecture)
AuraDash consists of 6 core components that run together on Cloudflare's global edge network at zero infrastructure cost:
Frontend (Admin Dashboard)
The web interface where you log in, write articles, view bookings, and manage your team. Deployed on Cloudflare Pages.
Backend (Server & REST API)
The ultra-fast engine powered by Hono on Cloudflare Workers. Handles logins, validation, and responds to public website requests.
Database (Cloudflare D1 SQL)
Cloudflare D1 serverless SQLite database. Stores all your articles, services, user accounts, and customer booking submissions.
Media Storage (Cloudflare R2)
Cloudflare R2 stores all your uploaded images and media. Zero egress fees, ultra-fast global CDN delivery.
Email Routing (System Emails)
Cloudflare Email Routing sends password reset codes and booking notifications directly from your official custom domain.
Custom Domain & SSL
Connect your own custom domain (e.g. dashboard.yourdomain.com) with free automatic SSL encryption.
How to Connect & Deploy Your Client Website on Cloudflare (3 Simple Steps)
When you deploy your customer-facing landing page or website to Cloudflare Pages, you only need to copy 2 values from your AuraDash dashboard:
Get Your 2 Keys
From your live AuraDash setup, you need:
https://api.yourdomain.com/api/publicPaste into Cloudflare Pages
In your Cloudflare Pages dashboard, go to Settings ➔ Environment Variables and add these 2 values:
AURADASH_API_URLAURADASH_API_KEYClick Deploy!
Click Deploy. That's all! Your Cloudflare Pages site is live and connected:
Cloudflare Pages Deployment Configuration:
In Cloudflare Pages ➔ Settings ➔ Environment variables ➔ Add AURADASH_API_URL and AURADASH_API_KEY under Production.
Also add the variables under Preview so every pull request and feature branch automatically connects to your live AuraDash API.
Click Save and Deploy. Cloudflare instantly compiles and distributes your site across 300+ edge data centers with free automatic SSL.
Complete Step-by-Step Deployment Guide (From Zero to Production)
Follow these 5 straightforward phases to set up your Cloudflare services, deploy your code, and connect your custom domain:
Prepare Free Cloudflare Resources (Database, Storage & Email)
Log in to your Cloudflare Dashboard and create the 4 free supporting resources:
Go to Storage & Databases ➔ D1 SQL Database ➔ Create Database.
auradashGo to R2 Object Storage ➔ Create Bucket.
auradash-storage💡 In Bucket Settings, enable R2.dev subdomain or connect a Custom Domain (e.g. cdn.yourdomain.com) to get your public image URL.
Go to Storage & Databases ➔ KV ➔ Create Namespace.
K1Generate Master Cryptographic Key (`AURADASH_MASTER_SECRET`)
Generate your high-entropy secret key below. You will use this key in your Cloudflare environment variables:
Cryptographic Master Secret Generator512-bit Entropy
Generated securely inside your browser using Web Crypto API. Never sent over the internet.
AURADASH_MASTER_SECRET):Environment Variables & Secrets Reference
Here is the complete reference of all environment variables for both Backend and Frontend, with clear explanations of what each does:
1. Backend Environment Variables (Cloudflare Worker):
| Variable Name | Type | Example Value | Purpose & Explanation |
|---|---|---|---|
| AURADASH_MASTER_SECRET | Secret (Encrypted) | Generated 64-char key | The master key used to mathematically sign and verify all API keys at the edge. |
| R2_PUBLIC_URL | Plain Variable | https://pub-xxxx.r2.dev | The public URL of your R2 Bucket where uploaded article and service images are accessed. |
| ALLOWED_ORIGINS | Plain Variable | https://dashboard.yourdomain.com | Allowed frontend dashboard domain for CORS security checks. |
| APP_FRONTEND_URL | Plain Variable | https://dashboard.yourdomain.com | The web address of your dashboard, used inside password reset email links. |
| EMAIL_FROM_ADDRESS | Plain Variable | [email protected] | The official sender email address used for system emails. |
2. Frontend Environment Variables (Cloudflare Pages):
| Variable Name | Type | Example Value | Purpose & Explanation |
|---|---|---|---|
| NEXT_PUBLIC_API_URL | Plain Variable | https://api.yourdomain.com/api | The full public URL of your deployed backend worker so the dashboard can fetch data. |
Deploy Backend & Frontend Applications
1. Deploy Backend (Cloudflare Workers)
Deploy the Hono API server and apply database tables to Cloudflare D1:
npm run db:remote to initialize tables.npm run deploy to push worker code.2. Deploy Frontend (Cloudflare Pages)
Connect your repository to Cloudflare Pages:
frontendnpm run build:cloudflare.open-nextConnect Custom Domain & Automatic SSL
Link your brand's custom domain name to your dashboard and API in seconds:
1. Domain for Frontend Dashboard
In Cloudflare Pages ➔ Select your project ➔ Custom domains ➔ Click Set up a domain.
Cloudflare will automatically configure DNS records and issue a free SSL certificate.
2. Domain for Backend API
In Workers & Pages ➔ Select auradash-backend ➔ Settings ➔ Domains & Routes ➔ Custom Domains.
Provides a clean, professional API endpoint for your public client web and mobile apps.
Full Video Walkthrough & Deployment Guide
Watch our step-by-step video tutorial covering local setup, database initialization, and deploying to Cloudflare in under 5 minutes.
Deploy & Run AuraDash for the First Time
Follow along with this step-by-step visual tutorial to get your workspace live:
Official Local Development Guide (Step-by-Step)
Follow this official standard procedure to clone, initialize, and run AuraDash locally on your machine with full D1 database simulation.
System Prerequisites
Clone the Repository
Clone the official AuraDash monorepo from GitHub to your computer:
Install Dependencies (Backend & Frontend)
Install all required packages for both the Hono Workers backend and Next.js frontend:
Initialize Local Cloudflare D1 Database (`npm run db:init`)
Execute the database initializer script to apply all 10 SQL schema tables to your local Miniflare D1 database:
Configure Environment Variables
Configure your local environment files for backend and frontend:
Start Development Servers (VS Code or CLI)
You can start both frontend and backend concurrently using the pre-configured VS Code task or standard CLI:
Press the default build shortcut inside VS Code to launch both servers simultaneously in dedicated terminal panels:
💡 Alternatively, open Terminal ➔ Run Build Task from the top VS Code menu bar.
Initial Login Credentials & Security Warning
Open http://localhost:3000 in your browser and sign in using the seeded administrator credentials:
