From dd4abe85ae6b44911d61e8fc8804151fd1f24af5 Mon Sep 17 00:00:00 2001 From: Alexander Taborda Acosta Date: Fri, 7 Aug 2026 19:54:35 -0500 Subject: [PATCH] Add browser UI for todo testing --- README.md | 2 + config/environments/production.rb | 1 + public/index.html | 119 ++++++++++++++++++++++++++++++ startos/versions/current.ts | 12 +-- 4 files changed, 128 insertions(+), 6 deletions(-) create mode 100644 public/index.html diff --git a/README.md b/README.md index 9154baf..4c3a9ad 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Todo Back is a deliberately small Rails JSON API packaged as a native StartOS 0.4 service. Its purpose is to validate the complete local-build → `.s9pk` → sideload workflow before investing in a larger application. +The interface root also serves a dependency-free browser page for quickly exercising every todo operation. + ## API - `GET /up` — Rails and PostgreSQL health check diff --git a/config/environments/production.rb b/config/environments/production.rb index 817d4bf..4b70ed8 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -4,6 +4,7 @@ Rails.application.configure do config.enable_reloading = false config.eager_load = true config.consider_all_requests_local = false + config.public_file_server.enabled = true config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info") config.log_tags = [:request_id] config.logger = ActiveSupport::TaggedLogging.logger($stdout) diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..d840278 --- /dev/null +++ b/public/index.html @@ -0,0 +1,119 @@ + + + + + + Todo Back + + + +

Todo Back

+ +
+ + +
+ +

+ + + + + diff --git a/startos/versions/current.ts b/startos/versions/current.ts index 861e133..8a4ec82 100644 --- a/startos/versions/current.ts +++ b/startos/versions/current.ts @@ -1,13 +1,13 @@ import { IMPOSSIBLE, VersionInfo } from '@start9labs/start-sdk' export const current = VersionInfo.of({ - version: '0.1.1:0', + version: '0.1.2:0', releaseNotes: { - en_US: 'Fix PostgreSQL readiness checks and HTTP/1.1 proxying; health now verifies the database.', - es_ES: 'Corrige las comprobaciones de PostgreSQL y el proxy HTTP/1.1; la salud ahora verifica la base de datos.', - de_DE: 'Korrigiert PostgreSQL-Prüfungen und HTTP/1.1-Proxying; der Status prüft nun die Datenbank.', - pl_PL: 'Poprawia test PostgreSQL i proxy HTTP/1.1; kontrola stanu sprawdza teraz bazę danych.', - fr_FR: 'Corrige les contrôles PostgreSQL et le proxy HTTP/1.1 ; la santé vérifie désormais la base de données.', + en_US: 'Add a small browser interface for testing all todo operations.', + es_ES: 'Agrega una pequeña interfaz web para probar todas las operaciones de tareas.', + de_DE: 'Fügt eine kleine Browseroberfläche zum Testen aller Aufgabenoperationen hinzu.', + pl_PL: 'Dodaje mały interfejs przeglądarkowy do testowania wszystkich operacji na zadaniach.', + fr_FR: 'Ajoute une petite interface web pour tester toutes les opérations sur les tâches.', }, migrations: { up: async () => {},