generated from ludops/ludops-skeleton
Init todo app
Build and Deploy / build-and-push (push) Successful in 1m27s
Details
Build and Deploy / build-and-push (push) Successful in 1m27s
Details
This commit is contained in:
parent
8670e54661
commit
3a8b6572b9
|
|
@ -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/<owner>/<repo-name>
|
||||
REGISTRY_IMAGE=git.ludops.com/ludops/ludops-skeleton
|
||||
REGISTRY_IMAGE=git.ludops.com/ludops/ludops-todo
|
||||
|
|
|
|||
10
README.md
10
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-<appname>` (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 |
|
||||
|---|---|
|
||||
|
|
|
|||
|
|
@ -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 });
|
||||
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "ludops-skeleton",
|
||||
"name": "ludops-todo",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
Loading…
Reference in New Issue