π CloudCore Admin - Vercel Deployment Guide
Quick Setup
1. Create Vercel Project
- Go to vercel.com and sign in
- Click βNew Projectβ
- Import from folder or drag this folder to Vercel dashboard
2. Environment Variables
Add these in Vercel project settings:
UC_TOKENS={"ISYS6018":{"token":"b2e0ce1d6d99ba3c056ee8c8f90c2b6228240dbe6e957c14dd268726bdadbc4d","name":"ISYS6018 Coordinator"}}
ADMIN_TOKEN=a1b2c3d4e5f6789
GITHUB_TOKEN=ghp_your_github_personal_access_token
GITHUB_OWNER=michael-borck
GITHUB_REPO=cloudcore
3. GitHub Token Setup
- Go to GitHub β Settings β Developer settings β Personal access tokens
- Create token with permissions:
repo
,contents:write
- Copy token to
GITHUB_TOKEN
environment variable
4. Test Login
- URL:
https://your-project.vercel.app/
- Unit:
ISYS6018
- Token:
b2e0ce1d6d99ba3c056ee8c8f90c2b6228240dbe6e957c14dd268726bdadbc4d
π― Advantages of Vercel
β
Simple drag-and-drop deployment
β
Automatic HTTPS
β
Built-in serverless functions
β
Free tier: 100GB bandwidth
β
No complex configuration
β
Better interface than current Netlify
π§ Files Included
index.html
- Main admin portallogin.html
- Authentication page
dashboard.html
- Main dashboarddashboard.js
- All dashboard functionalityapi/auth.js
- Authentication endpointapi/github-api.js
- GitHub repository operationspackage.json
- Dependenciesvercel.json
- Vercel configuration
π For Unit Coordinators
Once deployed, you can: - Login with your unit-specific token - Manage access controls for your unitβs resources - Upload and edit content files - Configure scenarios and time-based access - View activity logs and statistics
All changes sync directly to the main CloudCore repository and appear on the student site within minutes.
Ready to deploy! Just drag this folder to Vercel dashboard! π―