This repository demonstrates the k8s-ephemeral-environments platform with a sample Todo application.
A full-stack todo list application showcasing PR preview environments.
- Frontend: React 19, Vite 6, TypeScript, Tailwind CSS, shadcn/ui
- Backend: NestJS 11, TypeScript, Drizzle ORM
- Database: PostgreSQL 16
- Package Manager: pnpm (monorepo)
cd todo-app
# Start everything (PostgreSQL + migrations + dev servers)
pnpm dev:local
# API: http://localhost:3000
# Web: http://localhost:5173
# Stop services
pnpm teardownWhen you open a PR, the GitHub Action will automatically:
- Build the Docker image
- Deploy to the k3s cluster
- Create a PostgreSQL database
- Run migrations
- Comment on the PR with the preview URL
Preview URL format: https://todo-app-pr-{number}.k8s-ee.genesluna.dev
When the PR is closed, the environment is automatically destroyed.