https://github.com/bocaletto-luca/todo-http-server-ruby
Ruby Sinatra Todo HTTP Server 🚀 A single-file, in-memory RESTful API written in Ruby using Sinatra. Features health, version, metrics, request logging, and graceful shutdown.
https://github.com/bocaletto-luca/todo-http-server-ruby
bocaletto-luca http-server opensource ruby server server-web
Last synced: 9 months ago
JSON representation
Ruby Sinatra Todo HTTP Server 🚀 A single-file, in-memory RESTful API written in Ruby using Sinatra. Features health, version, metrics, request logging, and graceful shutdown.
- Host: GitHub
- URL: https://github.com/bocaletto-luca/todo-http-server-ruby
- Owner: bocaletto-luca
- License: mit
- Created: 2025-06-12T04:48:20.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-12T04:50:01.000Z (about 1 year ago)
- Last Synced: 2025-06-12T05:37:27.765Z (about 1 year ago)
- Topics: bocaletto-luca, http-server, opensource, ruby, server, server-web
- Language: Ruby
- Homepage: https://bocaletto-luca.github.io/
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ruby Sinatra Todo HTTP Server 🚀
A single-file, in-memory RESTful API written in Ruby using Sinatra.
Features health, version, metrics, request logging, and graceful shutdown.
**File:** `app.rb`
**Author:** [bocaletto-luca](https://github.com/bocaletto-luca)
**License:** MIT
---
## 📦 Installation & Run
##bash
# Install dependencies
gem install sinatra json
# Run server (default port 4567)
ruby app.rb
# Or specify port
ruby app.rb --port 9090
🛠️ Features
In-memory store (no external DB)
Thread-safe using Mutex
Automatic JSON parsing and encoding
Request logging by Sinatra
Basic metrics: total requests & todos count
Graceful shutdown on CTRL-C