Skip to content

redis-developer/redis-nosql-database-production-app

Repository files navigation

Redis as a NoSQL database for a production app

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.

Run with Docker

bun docker

That starts:

  • The app on http://localhost:8080
  • Redis on 127.0.0.1:6379

Main routes

  • 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.

Local dev

bun install
bun dev

Tests

bun test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors