chore: scaffold turbo monorepo with hono api and react admin web

This commit is contained in:
Jose Selesan
2026-10-15 15:24:34 -03:00
commit 2b1d2152c4
89 changed files with 4996 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
import { Ok, type Result, type ProblemDetails } from '@superlist/shared'
export type HealthStatus = {
status: 'ok'
uptimeSeconds: number
timestamp: string
}
/**
* Returns the liveness status of the process.
* No dependencies and no failure mode: it must always succeed.
*/
export class GetStatus {
constructor(private readonly now: () => Date = () => new Date()) {}
execute(): Result<HealthStatus, ProblemDetails> {
return Ok({
status: 'ok',
uptimeSeconds: Math.round(process.uptime()),
timestamp: this.now().toISOString(),
})
}
}