Skip to content

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

License

Notifications You must be signed in to change notification settings

mhmda-83/koochikok

Repository files navigation

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 the cloud.
  2. Based on the language/framework you want to use, you will find the following client libraries:

The above videos and guides should be enough to get you started in your desired language/framework. From there you can expand and develop your app. Use the resources below to help guide you further:

  1. Developer Hub - The main developer page for Redis, where you can find information on building using Redis with sample projects, guides, and tutorials.
  2. Redis Stack getting started page - Lists all the Redis Stack features. From there you can find relevant docs and tutorials for all the capabilities of Redis Stack.
  3. Redis Rediscover - Provides use-cases for Redis as well as real-world examples and educational material
  4. RedisInsight - Desktop GUI tool - Use this to connect to Redis to visually see the data. It also has a CLI inside it that lets you send Redis CLI commands. It also has a profiler so you can see commands that are run on your Redis instance in real-time
  5. Youtube Videos

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published