No description
Find a file
AeThex 1a4321a531
Some checks failed
Build / build (push) Has been cancelled
Deploy / deploy (push) Has been cancelled
Lint & Type Check / lint (push) Has been cancelled
Security Scan / semgrep (push) Has been cancelled
Security Scan / dependency-check (push) Has been cancelled
Test / test (18.x) (push) Has been cancelled
Test / test (20.x) (push) Has been cancelled
fix: await Discord SDK voice subscribes and add missing Activity API endpoints
- Await SPEAKING_START/SPEAKING_STOP subscribes so try-catch handles 4006 scope errors
- Add GET /api/feed and POST /api/feed/:id/like (community posts alias for Activity)
- Add DELETE /api/activity/polls/:id (soft-delete via is_active=false)
- Add POST /api/activity/challenges/:id/claim (marks challenge progress as completed)
- Add GET /api/activity/badges (all badges, no userId required)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-15 02:24:32 +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 fix: Discord Activity token exchange, CSP headers, subscription routes, and static asset 404 2026-04-14 23:49:50 +00: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 fix: await Discord SDK voice subscribes and add missing Activity API endpoints 2026-04-15 02:24:32 +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 fix: await Discord SDK voice subscribes and add missing Activity API endpoints 2026-04-15 02:24:32 +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 fix: include server/ in Docker image and fix Vite ssrLoadModule path 2026-04-15 00:36:35 +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: pass VITE_* env vars as Docker build args for client bundle 2026-04-15 02:04:25 +00:00
Dockerfile fix: pass VITE_* env vars as Docker build args for client bundle 2026-04-15 02:04:25 +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 fix: server-side OG/Twitter meta injection for crawler visibility 2026-04-12 14:30:47 +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
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 fix: use ssrLoadModule to load Express server in Vite dev plugin 2026-04-15 00:28:32 +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