Git-backed Node Blob Server
✓ Published0🌍 Public
Mmbostock
Last edited Aug 16, 2012
Created on Aug 16, 2012
A minimal Express server responds to root requests by reading a Git blob from a repository. The example demonstrates a Git-backed blob server, using the `gitteh` library to open a local repository and retrieve a specific blob by its SHA-1 hash. The retrieved blob’s data is then sent back as the HTTP response, showing how raw Git objects can be directly served over HTTP. The code explicitly uses `express` for routing and `gitteh.openRepository` together with `repository.getBlob` to access the content.
AI-generated description