No description
Find a file
AeThex 7fec93e05c
Some checks are pending
Build / build (push) Waiting to run
Deploy / deploy (push) Waiting to run
Lint & Type Check / lint (push) Waiting to run
Security Scan / dependency-check (push) Waiting to run
Security Scan / semgrep (push) Waiting to run
Test / test (18.x) (push) Waiting to run
Test / test (20.x) (push) Waiting to run
feat: Authentik SSO, nav systems, project pages, and schema fixes
Auth & SSO
- Wire Authentik (auth.aethex.tech) as OIDC PKCE SSO provider
- Server-side only flow with HMAC-signed stateless state token
- Account linking via authentik_sub in user metadata
- AeThex ID connection card in Dashboard connections tab
- Unlink endpoint POST /api/auth/authentik/unlink
- Fix node:https helper to bypass undici DNS bug on Node 18
- Fix resolv.conf to use 1.1.1.1/8.8.8.8 in container

Schema & types
- Regenerate database.types.ts from live Supabase schema (23k lines)
- Fix 511 TypeScript errors caused by stale 582-line types file
- Fix UserProfile import in aethex-database-adapter.ts
- Add notifications migration (title, message, read columns)

Server fixes
- Remove badge_color from achievements seed/upsert (column doesn't exist)
- Rename name→title, add slug field in achievements seed
- Remove email from all user_profiles select queries (column doesn't exist)
- Fix email-based achievement target lookup via auth.admin.listUsers
- Add GET /api/projects/:projectId endpoint
- Fix import.meta.dirname → fileURLToPath for Node 18 compatibility
- Expose VITE_APP_VERSION from package.json at build time

Navigation systems
- DevPlatformNav: reorganize into Learn/Build grouped dropdowns with descriptions
- Migrate all 11 dev-platform pages from main Layout to DevPlatformLayout
- Remove dead isDevMode context nav swap from main Layout
- EthosLayout: purple-accented tab bar (Library, Artists, Licensing, Settings)
  with member-only gating and guest CTA — migrate 4 Ethos pages
- GameForgeLayout: orange-branded sidebar with Studio section and lock icons
  for unauthenticated users — migrate GameForge + GameForgeDashboard
- SysBar: live latency ping, status dot (green/yellow/red), real version

Layout dropdown
- Role-gate Admin (owner/admin/founder only) and Internal Docs (+ staff)
- Add Internal section label with separator
- Fix settings link from /dashboard?tab=profile#settings to /dashboard?tab=settings

Project pages
- Add ProjectDetail page at /projects/:projectId
- Fix ProfilePassport "View mission" link from /projects/new to /projects/:id

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 05:01:10 +00:00
.builder/rules Initial commit 2025-08-05 20:03:34 +00:00
.github/workflows Sync local changes 2025-12-07 00:17:04 +00:00
aethex-forge modified: .replit 2025-12-05 01:06:47 -07:00
api Merge branch 'main' into claude/find-unfinished-flows-vKjsD 2026-01-26 15:50:36 -07:00
attached_assets Update privacy, terms, and support pages with new content 2025-12-14 23:44:31 +00:00
build Add files via upload 2025-12-06 01:04:50 -07:00
client feat: Authentik SSO, nav systems, project pages, and schema fixes 2026-04-12 05:01:10 +00:00
docs Merge branch 'main' into claude/find-unfinished-flows-vKjsD 2026-01-26 15:50:36 -07:00
docs-migration Prettier format pending files 2025-11-05 02:45:56 +00:00
electron modified: electron/main.js 2026-01-02 04:07:51 -07:00
public Improve website SEO by updating sitemap and title tags 2025-12-09 05:43:59 +00:00
server feat: Authentik SSO, nav systems, project pages, and schema fixes 2026-04-12 05:01:10 +00:00
services modified: .replit 2025-12-05 01:06:47 -07:00
shared Remove demo API types 2025-08-06 02:14:21 +00:00
supabase feat: Authentik SSO, nav systems, project pages, and schema fixes 2026-04-12 05:01:10 +00:00
tests Prettier format pending files 2025-11-08 03:49:51 +00:00
.builderrules Todo list updated 2025-10-01 02:16:46 +00:00
.dockerignore Initial commit 2025-08-05 20:03:34 +00:00
.env.discord.example Discord Configuration Example 2025-11-05 07:33:35 +00:00
.env.example Create environment variables template 2025-08-06 00:04:12 +00:00
.env.foundation-oauth.example completionId: cgen-6e1d80e2545f4e4998a976070bea2bc3 2025-11-17 02:24:05 +00:00
.gitignore Configure Vite to work with Replit and secure file system access 2025-12-02 18:11:51 +00:00
.htaccess Create .htaccess file for Hostinger SPA routing 2025-08-06 03:31:57 +00:00
.npmrc Initial commit 2025-08-05 20:03:34 +00:00
.prettierrc Initial commit 2025-08-05 20:03:34 +00:00
.replit Update AI personas to include new subscription tiers and unlockable badges 2025-12-12 23:12:45 +00:00
.vercelignore Fix .vercelignore to not exclude utility modules needed by handlers 2025-11-16 07:02:05 +00:00
AGENTS.md Initial commit 2025-08-05 20:03:34 +00:00
apply_missing_migrations.sql feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
apply_missing_migrations_safe.sql feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
apply_missing_migrations_SAFE.sql feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
build-api.js Simplify build-api.js to just validate API setup 2025-11-16 05:00:15 +00:00
build-for-hostinger.sh Create build script for Hostinger deployment 2025-08-06 03:32:07 +00:00
check-migrations.js feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
check_all_tables_user_id.sql feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
check_user_badges.sql feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
check_whats_missing.sh feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
components.json Initial commit 2025-08-05 20:03:34 +00:00
copy-api.js completionId: cgen-501e89513d5342e4a2c04a825bae5594 2025-11-16 01:49:28 +00:00
DEPLOYMENT_CHECKLIST.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
DESIGN_SYSTEM.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
DEVELOPER_PLATFORM_ARCHITECTURE.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
DISCORD_SETUP.md Update next steps section with final Discord configuration 2025-11-05 16:34:09 +00:00
docker-compose.yml fix: disable broken pages, fix Foundation duplicate import and tag mismatch 2026-04-07 06:20:52 +00:00
Dockerfile fix: disable broken pages, fix Foundation duplicate import and tag mismatch 2026-04-07 06:20:52 +00:00
electron-builder.yml Disable automatic publishing to GitHub 2025-12-06 01:51:14 +00:00
find_missing_user_id.sh feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
foundation_tables_only.sql feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
hostinger-deploy.md Prettier format pending files 2025-08-06 03:38:55 +00:00
index.html Improve website SEO by updating sitemap and title tags 2025-12-09 05:43:59 +00:00
LAUNCH_READY.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
LICENSE Update application to include desktop build and release configurations 2025-12-05 23:20:50 +00:00
netlify.toml Initial commit 2025-08-05 20:03:34 +00:00
OAUTH_SETUP.md Replace fly.dev with aethex.dev throughout code/OAUTH_SETUP.md 2025-11-08 08:07:07 +00:00
package-lock.json feat: Authentik SSO, nav systems, project pages, and schema fixes 2026-04-12 05:01:10 +00:00
package.json feat: Authentik SSO, nav systems, project pages, and schema fixes 2026-04-12 05:01:10 +00:00
PHASE1_IMPLEMENTATION_SUMMARY.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
PHASE4_IMPLEMENTATION_SUMMARY.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
PHASE8_QA_CHECKLIST.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
postcss.config.js Initial commit 2025-08-05 20:03:34 +00:00
PROJECT_COMPLETE.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
PROTECTED_DISCORD_ACTIVITY.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
railway.json Create railway.json configuration 2025-11-16 10:59:32 +00:00
README.md modified: .replit 2025-12-05 01:06:47 -07:00
replit.md Update documentation for Discord integration and system architecture 2025-12-13 10:08:00 +00:00
SPACING_SYSTEM.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
supabase-migration.sql Append user_roles table and RLS to migration SQL 2025-09-27 21:13:35 +00:00
SUPABASE_SETUP.md Prettier format pending files 2025-08-06 00:35:27 +00:00
tailwind.config.ts feat: Authentik SSO, nav systems, project pages, and schema fixes 2026-04-12 05:01:10 +00:00
TESTING_REPORT.md feat: Complete database migration and developer platform 2026-01-10 02:05:15 +00:00
tsconfig.json Update application to include desktop build and release configurations 2025-12-05 23:20:50 +00:00
vercel.json Add handling for trailing slash in activity URL path 2025-12-08 17:21:05 +00:00
vite.config.server.ts Fix server build to produce the correct output file for deployment 2025-12-02 18:51:07 +00:00
vite.config.ts feat: Authentik SSO, nav systems, project pages, and schema fixes 2026-04-12 05:01:10 +00:00
vite.desktop.config.ts Refactor desktop application and improve Electron integration 2025-12-05 22:36:13 +00:00

AeThex Forge - Local Development Setup

Quick Start Guide

This guide will help you set up and run the AeThex platform locally on your machine.

Prerequisites

  1. Node.js (v18 or higher)

  2. Git (optional, if you want to clone updates)

Installation Steps

1. Install Node.js

  • Visit https://nodejs.org/ and download the LTS version
  • Run the installer and follow the setup wizard
  • Restart your terminal/PowerShell after installation

2. Verify Installation

Open PowerShell or Command Prompt and run:

node --version
npm --version

You should see version numbers (e.g., v20.x.x and 10.x.x)

3. Install Project Dependencies

Navigate to the project folder and install dependencies:

cd C:\Users\PCOEM\Downloads\aethex-forge\aethex-forge
npm install

This may take a few minutes as it downloads all required packages.

4. Set Up Environment Variables

Create a .env file in the root directory (aethex-forge folder) with the following variables:

Minimum Required (to run the app):

# Supabase Configuration (Required)
VITE_SUPABASE_URL=your_supabase_url_here
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key_here
SUPABASE_SERVICE_ROLE=your_service_role_key_here
SUPABASE_URL=your_supabase_url_here

# API Base URL
VITE_API_BASE=http://localhost:5000

Optional (for full functionality):

# Discord Integration
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_SECRET=your_discord_client_secret
DISCORD_BOT_TOKEN=your_discord_bot_token
DISCORD_PUBLIC_KEY=your_discord_public_key
DISCORD_REDIRECT_URI=http://localhost:5000/api/discord/oauth/callback

# Foundation OAuth
VITE_FOUNDATION_URL=https://aethex.foundation
FOUNDATION_OAUTH_CLIENT_ID=your_foundation_client_id
FOUNDATION_OAUTH_CLIENT_SECRET=your_foundation_client_secret

# Email Service (SMTP)
SMTP_HOST=your_smtp_host
SMTP_PORT=587
SMTP_USER=your_smtp_user
SMTP_PASSWORD=your_smtp_password

# Other Services
VITE_GHOST_API_URL=your_ghost_api_url
GHOST_ADMIN_API_KEY=your_ghost_admin_key

Note: You can start with just the Supabase variables to get the app running. Other features will work once you add their respective credentials.

5. Run the Development Server

npm run dev

The application will start on http://localhost:5000

Open your browser and navigate to that URL to view the application.

Available Commands

  • npm run dev - Start development server (port 5000)
  • npm run build - Build for production
  • npm start - Start production server
  • npm run typecheck - Check TypeScript types
  • npm test - Run tests

Project Structure

aethex-forge/
├── client/          # React frontend (pages, components)
├── server/          # Express backend API
├── api/             # API route handlers
├── shared/          # Shared types between client/server
├── discord-bot/     # Discord bot integration
└── supabase/        # Database migrations

Getting Supabase Credentials

If you don't have Supabase credentials yet:

  1. Go to https://supabase.com/
  2. Create a free account
  3. Create a new project
  4. Go to Project Settings → API
  5. Copy:
    • Project URL → VITE_SUPABASE_URL and SUPABASE_URL
    • anon public key → VITE_SUPABASE_ANON_KEY
    • service_role secret key → SUPABASE_SERVICE_ROLE

Troubleshooting

Port Already in Use

If port 5000 is already in use, you can change it in vite.config.ts:

server: {
  port: 5001, // Change to any available port
}

Module Not Found Errors

Try deleting node_modules and package-lock.json, then run npm install again:

Remove-Item -Recurse -Force node_modules
Remove-Item package-lock.json
npm install

Environment Variables Not Loading

  • Make sure .env file is in the root aethex-forge directory
  • Restart the dev server after adding new environment variables
  • Variables starting with VITE_ are exposed to the client

Need Help?

  • Check the docs/ folder for detailed documentation
  • Review AGENTS.md for architecture details
  • See replit.md for deployment information