From 3a8b6572b93546d7b1ba629ddb3d525c9e532038 Mon Sep 17 00:00:00 2001 From: ImNotTheGuy Date: Tue, 21 Apr 2026 19:10:02 +0200 Subject: [PATCH] Init todo app --- .env.example | 4 ++-- README.md | 10 +++++----- apps/api/src/db/index.ts | 2 +- apps/web/src/App.tsx | 2 +- package.json | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.env.example b/.env.example index 1b8301b..f9d3bb0 100644 --- a/.env.example +++ b/.env.example @@ -6,8 +6,8 @@ # Short name for the app — used for container name and database name. # Use lowercase, no spaces, e.g. "myapp", "portfolio", "dashboard" -APP_NAME=skeleton +APP_NAME=todo # Full registry image path — must match the Gitea repository path. # Format: git.ludops.com// -REGISTRY_IMAGE=git.ludops.com/ludops/ludops-skeleton +REGISTRY_IMAGE=git.ludops.com/ludops/ludops-todo diff --git a/README.md b/README.md index 176891a..2e585f5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ludops-skeleton +# ludops-todo A fullstack monorepo template for quickly scaffolding and deploying apps on your own infrastructure. @@ -15,7 +15,7 @@ Convention: `ludops-` (e.g. `ludops-portfolio`, `ludops-dashboard`). ### 2. Rename everything (global find & replace) -Search the entire repo for `skeleton` and replace with your app name (lowercase, no spaces). +Search the entire repo for `todo` and replace with your app name (lowercase, no spaces). | File | What changes | |---|---| @@ -40,8 +40,8 @@ These are injected into the CI runner automatically — no `.env` file needed on Connect to your shared Postgres instance and create the app's database: -```sql -CREATE DATABASE myapp_db; +```sh +sudo docker exec -it ludops-postgres psql -U gitea -c "CREATE DATABASE todo_db;" ``` The `DATABASE_URL` in `docker-compose.prod.yml` automatically uses `${APP_NAME}_db`. @@ -131,7 +131,7 @@ Add exports to `packages/shared/index.ts`. They are available in both `api` and --- -## Built-in features kept from the skeleton +## Built-in features kept from the todo | Feature | Where | |---|---| diff --git a/apps/api/src/db/index.ts b/apps/api/src/db/index.ts index 0a53ad4..3d93ef7 100644 --- a/apps/api/src/db/index.ts +++ b/apps/api/src/db/index.ts @@ -2,7 +2,7 @@ import { drizzle } from 'drizzle-orm/postgres-js'; import postgres from 'postgres'; import * as schemas from './schemas.js'; -const connectionString = process.env.DATABASE_URL || 'postgres://gitea:gitea@localhost:5432/skeleton_db'; +const connectionString = process.env.DATABASE_URL || 'postgres://gitea:gitea@localhost:5432/todo_db'; const client = postgres(connectionString, { prepare: false }); export const db = drizzle(client, { schema: schemas }); \ No newline at end of file diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index d943f50..b16728c 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from 'react' import './App.css' -const APP_NAME = 'My App' // ← Change this to your app name +const APP_NAME = 'TODO' type ApiStatus = 'loading' | 'ok' | 'error' diff --git a/package.json b/package.json index 0e17ec5..174de4e 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "ludops-skeleton", + "name": "ludops-todo", "private": true, "main": "index.js", "scripts": {