adulbrich/cs-capstone-inventory

★ 0Forks 0SvelteGitHub ↗Compare

README

CS Capstone Inventory Management System

Development

Start supabase and the development server:

supabase start
bun run dev

Run checks:

bun run check
bun x ultracite fix

Deployment

This supposes that the application is already deployed on AWS using Coolify.

SSH into the EC2 instance

ssh -i ~/.ssh/capstone-inventory-key.pem [email protected]

Access Coolify via SSH Tunnel

ssh -i ~/.ssh/capstone-inventory-key.pem -N -L 8000:localhost:8000 [email protected]

Run Database Migrations

# Terminal 1: open tunnel
ssh -i ~/.ssh/capstone-inventory-key.pem -N -L 5432:localhost:5432 [email protected]

# Terminal 2: push migrations (from your project root)
supabase db push --db-url "postgresql://postgres:<POSTGRES_PASSWORD>@localhost:5432/postgres"

Access Supabase Studio

# Find the Studio port first:
ssh [email protected] "docker ps | grep studio"

# Open tunnel (adjust port if different from 3000):
ssh -i ~/.ssh/capstone-inventory-key.pem -N -L 54321:localhost:3000 [email protected]

Contributors

adulbrich

Issues