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
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
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
- Sign up for a free Redis Cloud account using this link and use the Redis Stack database in…
Additional Resources / Info
- Check out Redis OM, client libraries for working with Redis as a multi-model database.
- Use RedisInsight to visualize your data in Redis.
- Sign up for a free Redis database.
Top comments (0)