Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini Redis

Mini Redis is a lightweight, educational implementation of a Redis-like key-value store in Node.js. It features a TCP server that understands the RESP (Redis Serialization Protocol) and a web-based dashboard for monitoring and interaction.

Mini Redis Dashboard

Features

  • TCP Server: Listens on port 6379 and handles standard Redis commands.
  • RESP Protocol: Implements a custom parser for the Redis Serialization Protocol.
  • Web Dashboard: Real-time monitoring of stats and an interactive console (Port 8080).
  • In-Memory Store: Fast key-value storage.

Installation

  1. Clone the repository.
    git clone <repository-url>
  2. Navigate to the project directory.
    cd "Mini Redis"
  3. Install dependencies (None! It uses standard Node.js libraries).

Usage

Start the server:

node server.js

You should see output similar to:

Mini Redis TCP server running on port 6379
Mini Redis Web Interface running at http://localhost:8080

Web Dashboard

Open your browser and navigate to http://localhost:8080 to view the dashboard.

TCP Client

You can connect using netcat or any Redis client:

nc localhost 6379

Supported Commands

  • SET key value: Store a value.
  • GET key: Retrieve a value.
  • DEL key: Delete a key.
  • PING: Check server health.

Project Structure

  • server.js: Main entry point, sets up TCP and HTTP servers.
  • parser.js: Handles parsing of RESP messages.
  • commands.js: Command execution logic.
  • store.js: In-memory data storage.
  • public/: Static files for the web dashboard.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages