This demo app shows how to use Redis as the primary database for an issue tracker.
It stores tickets as JSON documents, keeps list and filter indexes in Redis Sets and a Sorted Set, and issues auth sessions with TTL.
bun dockerThat starts:
- The app on
http://localhost:8080 - Redis on
127.0.0.1:6379
POST /api/session- Log in and get a bearer token.GET /api/tickets- List and filter tickets.GET /api/tickets/:id- Read a single ticket.POST /api/tickets- Create a ticket.PATCH /api/tickets/:id- Update a ticket.DELETE /api/tickets/:id- Delete a ticket.
bun install
bun devbun test