No description
Find a file
2025-12-09 00:15:50 +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 Improve Discord Activity UI with public endpoints and new realm setting 2025-12-08 22:13:52 +00:00
attached_assets Improve activity page layout and visual hierarchy 2025-12-08 23:31:46 +00:00
build Add files via upload 2025-12-06 01:04:50 -07:00
client Update UI to align with Discord's design language and improve layout 2025-12-08 23:52:41 +00:00
docs Update application to include desktop build and release configurations 2025-12-05 23:20:50 +00:00
docs-migration Prettier format pending files 2025-11-05 02:45:56 +00:00
electron Refactor desktop application and improve Electron integration 2025-12-05 22:36:13 +00:00
public AI & Machine Learning Beginners Course 2025-11-13 04:16:53 +00:00
server Update server to bind to all interfaces and use correct port 2025-12-07 23:20:18 +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/migrations Create provider_identities table for OAuth federation to Foundation Passports 2025-11-17 08:38:20 +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 UI In drizzy 2025-12-09 00:15:50 +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
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
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
DISCORD_SETUP.md Update next steps section with final Discord configuration 2025-11-05 16:34:09 +00:00
Dockerfile Create Dockerfile for Railway deployment 2025-11-16 10:59:29 +00:00
electron-builder.yml Disable automatic publishing to GitHub 2025-12-06 01:51:14 +00:00
hostinger-deploy.md Prettier format pending files 2025-08-06 03:38:55 +00:00
index.html completionId: cgen-1099a38dee794d9e9572a16ca3ae4f14 2025-11-15 03:28:04 +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 Sync local changes 2025-12-07 00:17:04 +00:00
package.json Sync local changes 2025-12-07 00:17:04 +00:00
postcss.config.js Initial commit 2025-08-05 20:03:34 +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 Improve Discord Activity UI with public endpoints and new realm setting 2025-12-08 22:13:52 +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 Update tailwind config with AeThex brand colors 2025-08-05 22:46:04 +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 Allow all hosts for Vite development server in Replit environment 2025-12-02 18:16:34 +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