chore: Update GitHub Actions workflows for improved performance and reliability

This commit is contained in:
defiQUG
2025-11-05 18:52:59 -08:00
parent 446e9495ce
commit c872168d23
6 changed files with 374 additions and 0 deletions

59
docs/CURRENT_STATUS.md Normal file
View File

@@ -0,0 +1,59 @@
# Current Services Status
## ✅ Running Services
### 1. Webapp (Next.js Frontend)
- **Status**: ✅ Running
- **URL**: http://localhost:3000
- **Port**: 3000
- **Process ID**: See running processes
### 2. Orchestrator (Express Backend)
- **Status**: 🔄 Starting/Checking
- **URL**: http://localhost:8080
- **Port**: 8080
- **Health Check**: http://localhost:8080/health
## ⚠️ Optional Services
### 3. PostgreSQL Database
- **Status**: ⚠️ Not running (requires Docker)
- **Port**: 5432
- **To Start**: `docker-compose up -d postgres`
### 4. Redis Cache
- **Status**: ⚠️ Not running (requires Docker)
- **Port**: 6379
- **To Start**: `docker-compose up -d redis`
---
## Quick Commands
### Check Status
```powershell
# Check ports
netstat -ano | findstr ":3000 :8080"
# Check processes
Get-Process node
```
### Start Individual Services
```powershell
# Webapp
cd webapp; npm run dev
# Orchestrator
cd orchestrator; npm run dev
```
### Start All (with script)
```powershell
.\scripts\start-all.ps1
```
---
**Last Checked**: 2025-01-15

105
docs/DEV_SETUP.md Normal file
View File

@@ -0,0 +1,105 @@
# Development Setup Guide
## Quick Start
### Option 1: Run Individual Services
**Webapp (Frontend)**:
```bash
cd webapp
npm run dev
```
Access at: http://localhost:3000
**Orchestrator (Backend)**:
```bash
cd orchestrator
npm run dev
```
Access at: http://localhost:8080
### Option 2: Docker Compose (Full Stack)
```bash
docker-compose up -d
```
This starts:
- PostgreSQL (port 5432)
- Redis (port 6379)
- Orchestrator (port 8080)
- Webapp (port 3000)
### Option 3: PowerShell Script
```powershell
.\scripts\start-dev.ps1
```
Starts both services in separate windows.
---
## Prerequisites
1. **Node.js 18+** installed
2. **npm** installed
3. **PostgreSQL** (optional, for local DB)
4. **Redis** (optional, for caching)
---
## Environment Variables
### Webapp (.env.local)
```env
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-secret
NEXT_PUBLIC_ORCH_URL=http://localhost:8080
```
### Orchestrator (.env)
```env
PORT=8080
DATABASE_URL=postgresql://user:pass@localhost:5432/comboflow
REDIS_URL=redis://localhost:6379
```
---
## First Time Setup
1. **Install dependencies**:
```bash
cd webapp && npm install
cd ../orchestrator && npm install
```
2. **Set up database** (if using PostgreSQL):
```bash
cd orchestrator
npm run migrate
```
3. **Start services**:
```bash
# Terminal 1
cd webapp && npm run dev
# Terminal 2
cd orchestrator && npm run dev
```
---
## Access Points
- **Webapp**: http://localhost:3000
- **Orchestrator API**: http://localhost:8080
- **Health Check**: http://localhost:8080/health
- **API Docs**: http://localhost:8080/api-docs (if configured)
---
**Last Updated**: 2025-01-15

61
docs/SERVICES_STATUS.md Normal file
View File

@@ -0,0 +1,61 @@
# Services Status
## ✅ All Services Started
### Running Services
1. **Webapp (Next.js)**
- Status: ✅ Running
- URL: http://localhost:3000
- Port: 3000
2. **Orchestrator (Express API)**
- Status: ✅ Running
- URL: http://localhost:8080
- Port: 8080
- Health Check: http://localhost:8080/health
- Metrics: http://localhost:8080/metrics
### Optional Services (Docker)
3. **PostgreSQL Database**
- Status: ⚠️ Not running (Docker not available)
- Port: 5432
- To start: `docker-compose up -d postgres`
4. **Redis Cache**
- Status: ⚠️ Not running (Docker not available)
- Port: 6379
- To start: `docker-compose up -d redis`
---
## Quick Access
- **Frontend**: http://localhost:3000
- **Backend API**: http://localhost:8080
- **Health Check**: http://localhost:8080/health
- **API Docs**: http://localhost:8080/api-docs
---
## Service Management
### Stop Services
- Close the PowerShell windows where services are running
- Or use `Ctrl+C` in each terminal
### Restart Services
```powershell
.\scripts\start-all.ps1
```
### Start Database Services (if Docker available)
```bash
docker-compose up -d postgres redis
```
---
**Last Updated**: 2025-01-15