Supabase Setup Guide for AeThex

This guide will help you set up Supabase for your AeThex application.

1. Create a Supabase Project

  1. Sign up or log in to your account

  2. Click "New project"

  3. Choose your organization

  4. Fill in your project details:

    • Name: aethex-app

    • Database Password: (generate a strong password)

    • Region: (choose closest to your users)

  5. Click "Create new project"

2. Get Your Project Credentials

  1. In your Supabase dashboard, go to Settings > API

  2. Copy your project URL and anon key

  3. Create a .env file in your project root:

  1. Update the .env file with your credentials:

3. Run Database Migrations

Execute the following SQL in your Supabase SQL Editor (Database > SQL Editor):

4. Configure Authentication Settings

  1. Go to Authentication > Settings in your Supabase dashboard

  2. Configure your site URL: http://localhost:5173 (for development)

  3. Add additional redirect URLs if needed for production

  4. Configure email templates in Authentication > Templates (optional)

5. Features Enabled

Once set up, your AeThex app will have:

🔐 Authentication

  • Email/password sign up and sign in

  • User session management

  • Profile creation and updates

🗄️ Database Features

  • User profiles with extended information

  • Project portfolio management

  • Achievement system with XP and levels

  • Community posts and comments

  • Real-time notifications

🎮 Gamification

  • User levels and XP tracking

  • Achievement system

  • Progress tracking

💬 Community

  • User-generated content

  • Real-time updates

  • Comment system

📊 Dashboard

  • Personalized user dashboard

  • Project tracking

  • Achievement display

  • Statistics and progress

6. Testing Your Setup

  1. Restart your development server

  2. Navigate to /login and create a new account

  3. Complete the onboarding process

  4. Check your dashboard for personalized content

7. Production Deployment

For production:

  1. Update your site URL in Supabase Authentication settings

  2. Add your production domain to redirect URLs

  3. Update your environment variables in your hosting platform

  4. Consider upgrading your Supabase plan for higher usage limits

Support

Your AeThex application is now powered by Supabase! 🚀

Last updated