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.
|
# Short name for the app — used for container name and database name.
|
||||||
# Use lowercase, no spaces, e.g. "myapp", "portfolio", "dashboard"
|
# 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.
|
# Full registry image path — must match the Gitea repository path.
|
||||||
# Format: git.ludops.com/<owner>/<repo-name>
|
# 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.
|
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)
|
### 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 |
|
| 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:
|
Connect to your shared Postgres instance and create the app's database:
|
||||||
|
|
||||||
```sql
|
```sh
|
||||||
CREATE DATABASE myapp_db;
|
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`.
|
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 |
|
| Feature | Where |
|
||||||
|---|---|
|
|---|---|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import { drizzle } from 'drizzle-orm/postgres-js';
|
||||||
import postgres from 'postgres';
|
import postgres from 'postgres';
|
||||||
import * as schemas from './schemas.js';
|
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 });
|
const client = postgres(connectionString, { prepare: false });
|
||||||
export const db = drizzle(client, { schema: schemas });
|
export const db = drizzle(client, { schema: schemas });
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import './App.css'
|
import './App.css'
|
||||||
|
|
||||||
const APP_NAME = 'My App' // ← Change this to your app name
|
const APP_NAME = 'TODO'
|
||||||
|
|
||||||
type ApiStatus = 'loading' | 'ok' | 'error'
|
type ApiStatus = 'loading' | 'ok' | 'error'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "ludops-skeleton",
|
"name": "ludops-todo",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue