About This Project
This is an example repository to develop scaffolding for using Bun + SQLite with deployment on Railway.
Technology Stack
- Backend: Bun.serve with TypeScript
- Database: SQLite (via bun:sqlite)
- Frontend: Vanilla HTML + TypeScript
- Deployment: Railway with Volume storage
Features
- Pure Bun implementation - no external frameworks
- RESTful API for CRUD operations
- Persistent SQLite database
- TypeScript throughout (frontend and backend)
- Simple, production-ready deployment setup
API Endpoints
GET /api/todos
- List all todosPOST /api/todos
- Create a new todoGET /api/todos/:id
- Get a single todoPATCH /api/todos/:id
- Update a todoDELETE /api/todos/:id
- Delete a todoGET /healthz
- Health check endpoint