DEV Community

Mohammad Mohammadalian
Mohammad Mohammadalian

Posted on

[Redis Hackathon] Koochikok (URL Shortener)

Overview of My Submission

this project is a URL shortener that uses Redis as its primary database and MongoDB as a secondary database

Submission Category:

Wacky Wildcards

Language Used

Node.js

Link to Code

GitHub logo mhmda-83 / koochikok

a URL shortener that uses Redis as its primary database and MongoDB as a secondary database

Koochikok

A URL shortener that uses Redis as its primary database and MongoDB as a secondary database

architecture

How it works

How the data is stored:

The URL data is stored using JSON data type and the key is URL:{entityId}

How the data is accessed:

using RedisSearch module by search through "shorten_identifier" field of json documents

How to run it locally?

cp .env.example .env.docker

docker-compose up -d

Prerequisites

Docker & Docker compose are required (tested with version 20.10.17 of docker and 1.29.2 of docker-compose)

Local installation

import Postman Collection and Postman Environment to use the APIs

More Information about Redis Stack

Here some resources to help you quickly get started using Redis Stack. If you still have questions, feel free to ask them in the Redis Discord or on Twitter.

Getting Started

  1. Sign up for a free Redis Cloud account using this link and use the Redis Stack database in

Additional Resources / Info

Architecture


Top comments (0)