Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
a99b232
feat: Implement Physio-Network Bridge
google-labs-jules[bot] Oct 19, 2025
59b1f4d
feat: Implement Physio-Network Bridge
google-labs-jules[bot] Oct 19, 2025
95c1533
Add files via upload
uniaolives Oct 19, 2025
d2f1986
Add files via upload
uniaolives Oct 19, 2025
c8abb21
Update README.md
uniaolives Oct 19, 2025
c1182f9
Merge pull request #1 from uniaolives/feature/physio-network-bridge
uniaolives Oct 19, 2025
401243b
Add files via upload
uniaolives Oct 19, 2025
a9b019a
Add files via upload
uniaolives Oct 19, 2025
f6e27ed
feat: Add Python-based offline verifier script
google-labs-jules[bot] Dec 18, 2025
4ec2341
Merge pull request #2 from uniaolives/feat/add-verifier-script-144624…
uniaolives Dec 18, 2025
f1a53ca
feat(verifier): finalize NoctHub v1.0 Python verifier and generator
google-labs-jules[bot] Dec 19, 2025
452b894
feat(verifier): finalize NoctHub v1.0 Python verifier and generator
google-labs-jules[bot] Dec 19, 2025
d23623f
feat(verifier): Implementação final do Verificador de Provas Python N…
google-labs-jules[bot] Dec 19, 2025
357c1b7
Merge branch 'main' into feat/add-nocthub-verifier-13423694782020357194
uniaolives Dec 19, 2025
0ccfca1
feat(verifier): Implementação final do Verificador de Provas Python N…
google-labs-jules[bot] Dec 20, 2025
5452fbb
feat(server): Initial compilable skeleton for Nocturne v1.7-N5-AUDIT-…
google-labs-jules[bot] Dec 20, 2025
909776b
Merge branch 'LunCoSim:main' into feat/add-nocthub-verifier-134236947…
uniaolives Dec 20, 2025
3d309f2
feat(fileverse): Initial compilable skeleton for Nocturne v1.7-N8-FIL…
google-labs-jules[bot] Dec 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git
package-lock.json
yarn.lock
pnpm-lock.yaml
test
*.log
local-*
68 changes: 54 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,61 @@
# Godot 4+ specific ignores
.godot/
build/
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.obsidian
.plugged
# dependencies
/node_modules
/.pnp
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/versions

#Managed by gd-plug
addons/panku_console/
# testing
/coverage

#webrtc addon. Probably later could be managed by gd-plug
webrtc/
# next.js
/.next/
/out/

# SSL certificates (security)
.cert/
# production
/build

# misc
.DS_Store
*.pem

# Raw data, e.g. PUGs
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

.raw_data/
scripts/remote_console_commands_history.txt
# env files (can opt-in for committing if needed)
.env*

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
local-*
.claude
.z-ai-config
dev.log
test
prompt

server.log

# Rust build artifacts
/nocturne_fileverse/target/

# Python artifacts
__pycache__/
*.pyc
*.pyo
*.pyd
.Python
env/
venv/
4 changes: 0 additions & 4 deletions .godotignore

This file was deleted.

149 changes: 149 additions & 0 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
# Lunar Base Monitoring System - Deployment Guide

## Overview
This guide covers deploying the Lunar Base Monitoring System to Render using PostgreSQL.

## Prerequisites
- Node.js 18+
- Render account
- Render CLI installed: `npm install -g @render/cli`
- Git repository

## Quick Deploy

### 1. Setup Environment
```bash
# Clone repository
git clone <your-repo-url>
cd lunar-base-monitoring

# Install dependencies
npm install

# Copy environment template
cp .env.production.template .env.production
```

### 2. Configure Environment Variables
Edit `.env.production` with your values:
- `DATABASE_URL` - Will be auto-filled by Render
- `NEXTAUTH_URL` - Your Render app URL
- `NEXTAUTH_SECRET` - Generate a secure secret

### 3. Deploy to Render
```bash
# Login to Render
render login

# Deploy
./scripts/deploy.sh
```

## Manual Deployment Steps

### 1. Create Database
1. Go to Render Dashboard → New → PostgreSQL
2. Name: `lunar-base-db`
3. Database Name: `lunar_base_monitoring`
4. Choose plan (Starter recommended)
5. Create

### 2. Create Web Service
1. Go to Render Dashboard → New → Web Service
2. Connect your Git repository
3. Configure:
- **Build Command**: `npm run build`
- **Start Command**: `npm start`
- **Health Check Path**: `/api/health`

### 3. Environment Variables
Set these in your web service:
```
NODE_ENV=production
DATABASE_URL=<from-database-settings>
NEXTAUTH_URL=<your-app-url>
NEXTAUTH_SECRET=<generate-secret>
APP_NAME=Lunar Base Monitoring System
LOG_LEVEL=info
ENABLE_DEV_TOOLS=false
MOCK_DATA=false
RATE_LIMIT_MAX=100
RATE_LIMIT_WINDOW=900000
ENABLE_METRICS=true
```

### 4. Database Setup
After deployment, the database will be automatically created via Prisma.

## Configuration Files

### render.yaml
Defines services and environment variables for automatic deployment.

### .env.production.template
Template for production environment variables.

### scripts/deploy.sh
Automated deployment script with validation.

## Post-Deployment Verification

1. **Health Check**: Visit `/api/health`
2. **Database Test**: Check if tables are created
3. **API Endpoints**: Test all API routes
4. **Frontend**: Verify dashboard loads correctly

## Monitoring

- **Logs**: Available in Render dashboard
- **Metrics**: Enabled via `ENABLE_METRICS=true`
- **Health Checks**: Automatic every 30 seconds

## Troubleshooting

### Database Connection Issues
- Verify `DATABASE_URL` is correct
- Check database is running
- Ensure Prisma schema matches

### Build Failures
- Check build logs in Render
- Verify all dependencies installed
- Ensure `NODE_VERSION` is compatible

### Runtime Errors
- Check application logs
- Verify environment variables
- Test API endpoints individually

## Scaling

### Web Service
- Upgrade plan for more CPU/memory
- Add instances for load balancing

### Database
- Upgrade plan for better performance
- Enable connection pooling
- Set up read replicas if needed

## Security

- Change `NEXTAUTH_SECRET` in production
- Use HTTPS (automatic on Render)
- Set appropriate CORS origins
- Enable rate limiting

## Support

For issues:
1. Check Render logs
2. Review this guide
3. Create GitHub issue
4. Contact Render support

---

**Deployment Time**: ~5-10 minutes
**Cost**: Starts at $7/month (Starter plan)
**Region**: Choose closest to your users
Loading