Quick Start Guide
Get the AI Agentification Platform up and running in under 10 minutes.
Prerequisites​
- Node.js 18+ installed
- Git installed
- A Supabase account (free tier works)
- A code editor (VS Code recommended)
1. Clone and Install​
# Clone the repository
git clone <your-repo-url>
cd "AI Agentification Platform Website Content"
# Install dependencies
npm install
2. Set Up Supabase​
Create a Supabase Project​
- Go to supabase.com
- Click "Start your project"
- Create a new project
- Wait for it to initialize (~2 minutes)
Get Your Credentials​
- Go to Settings → API
- Copy these values:
- Project URL (e.g.,
https://xxx.supabase.co) - anon public key
- Project URL (e.g.,
Run Database Setup​
- Go to SQL Editor in your Supabase dashboard
- Click "New Query"
- Copy the contents of
supabase/migrations/files - Run each migration file in order
- Verify tables were created in the Table Editor
3. Configure Environment​
Create a .env file in the project root:
# Supabase Configuration
VITE_SUPABASE_URL=https://your-project.supabase.co
VITE_SUPABASE_ANON_KEY=your_anon_key_here
# Environment
NODE_ENV=development
4. Start Development Server​
# Start both frontend and backend
npm run dev
# The application will open at:
# Frontend: http://localhost:5173
# Backend API: http://localhost:5001
5. Create Your First Admin User​
- Open the application at
http://localhost:5173 - Click "Sign Up"
- Create an account with your email
- Check your email for the verification link
- Click the link to verify your account
Make Yourself an Admin​
- Go to Supabase Dashboard → Authentication → Users
- Find your user account
- Click on it to edit
- In the User Metadata section, add:
{"role": "admin"}
- Save changes
- Log out and log back in to the application
6. Verify Everything Works​
Check the Homepage​
- Navigate to
http://localhost:5173 - You should see the landing page
Check the Admin Dashboard​
- Log in with your admin account
- Navigate to
http://localhost:5173/admin - You should see the admin panel
Test Database Connection​
- The admin dashboard should load data from Supabase
- If you see loading errors, check your environment variables
Common First-Time Issues​
"Failed to fetch" errors​
- Cause: Backend server not running
- Fix: Make sure you ran
npm run dev(not justnpm run dev:frontend)
"Invalid API key" errors​
- Cause: Wrong credentials in
.env - Fix: Double-check you copied the correct values from Supabase
Blank admin dashboard​
- Cause: User doesn't have admin role
- Fix: Add
"role": "admin"to user metadata in Supabase
Database tables not found​
- Cause: Migrations not run
- Fix: Run all SQL migration files in Supabase SQL Editor
Next Steps​
Now that you're set up:
- Read DEVELOPMENT_SETUP.md for complete development environment details
- Read DEPLOYMENT.md when you're ready to deploy to production
- Explore the Component Library for building features
- Check out Content Management to add courses and content
Quick Reference​
Start Development​
npm run dev # Start both frontend and backend
npm run dev:frontend # Frontend only
npm run dev:backend # Backend only
Build for Production​
npm run build # Build optimized production bundle
npm run preview # Preview production build locally
Database Operations​
npm run generate-sitemap # Generate sitemap from database content
Getting Help​
- Check the Troubleshooting Guide
- Review the Environment Variables Reference
- Read the Backend Developer Guide
Support​
If you run into issues:
- Check the browser console for errors
- Check the terminal where the dev server is running
- Verify your
.envfile has the correct values - Make sure all Supabase migrations have been run
- Try clearing your browser cache and localStorage
You're all set! Happy coding!