Clone
Cloudflare Pages Deployment Guide
Prerequisites
- Cloudflare account
- GitHub repository with this code
Deployment Steps
-
Build the project locally (optional, to test):
npm installnpm run build -
Push to GitHub:
git initgit add .git commit -m "Initial commit"git remote add origin YOUR_GITHUB_REPO_URLgit push -u origin main -
Deploy to Cloudflare Pages:
- Go to Cloudflare Pages
- Click "Create a project"
- Connect to Git and select your repository
- Configure build settings:
- Build command:
npm run build - Build output directory:
dist - Root directory:
/assessment-app(if in subdirectory)
- Build command:
- Click "Save and Deploy"
-
Custom Domain (optional):
- After deployment, go to Custom domains
- Add your domain (e.g.,
assessment-app.example.com) - Update DNS records as instructed
Adding New Assessments
- Create a new JSON file in
public/assessments/(e.g.,11th-grade-assessment.json) - Follow the same structure as existing assessment files
- Add the assessment to the home page in
src/views/Home.vue - Commit and push - Cloudflare will automatically rebuild
Local Development
npm install
npm run dev
Visit http://localhost:5173 to see the app.