<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mohammad Mohammadalian</title>
    <description>The latest articles on DEV Community by Mohammad Mohammadalian (@mhmda83).</description>
    <link>https://dev.to/mhmda83</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F302379%2F76f60be0-45c5-4ce0-a2b9-eeec96d8f639.jpg</url>
      <title>DEV Community: Mohammad Mohammadalian</title>
      <link>https://dev.to/mhmda83</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mhmda83"/>
    <language>en</language>
    <item>
      <title>[Redis Hackathon] Koochikok (URL Shortener)</title>
      <dc:creator>Mohammad Mohammadalian</dc:creator>
      <pubDate>Sat, 27 Aug 2022 09:28:45 +0000</pubDate>
      <link>https://dev.to/mhmda83/redis-hackathon-koochikok-url-shortener-33h1</link>
      <guid>https://dev.to/mhmda83/redis-hackathon-koochikok-url-shortener-33h1</guid>
      <description>&lt;h3&gt;
  
  
  Overview of My Submission
&lt;/h3&gt;

&lt;p&gt;this project is a URL shortener that uses Redis as its primary database and MongoDB as a secondary database&lt;/p&gt;

&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;Wacky Wildcards&lt;/p&gt;

&lt;h3&gt;
  
  
  Language Used
&lt;/h3&gt;

&lt;p&gt;Node.js&lt;/p&gt;

&lt;h3&gt;
  
  
  Link to Code
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--566lAguM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/mhmda-83"&gt;
        mhmda-83
      &lt;/a&gt; / &lt;a href="https://github.com/mhmda-83/koochikok"&gt;
        koochikok
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      a URL shortener that uses Redis as its primary database and MongoDB as a secondary database
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Koochikok&lt;/h1&gt;
&lt;p&gt;A URL shortener that uses Redis as its primary database and MongoDB as a secondary database&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://raw.githubusercontent.com/mhmda-83/koochikok/main/architecture.jpg"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pVqZOjDq--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/mhmda-83/koochikok/main/architecture.jpg" alt="architecture"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
How it works&lt;/h2&gt;
&lt;h3&gt;
How the data is stored:&lt;/h3&gt;
&lt;p&gt;The URL data is stored using JSON data type and the key is URL:{entityId}&lt;/p&gt;
&lt;h3&gt;
How the data is accessed:&lt;/h3&gt;
&lt;p&gt;using RedisSearch module by search through "shorten_identifier" field of json documents&lt;/p&gt;
&lt;h2&gt;
How to run it locally?&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;cp .env.example .env.docker&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;docker-compose up -d&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;
Prerequisites&lt;/h3&gt;
&lt;p&gt;Docker &amp;amp; Docker compose are required (tested with version 20.10.17 of docker and 1.29.2 of docker-compose)&lt;/p&gt;
&lt;h3&gt;
Local installation&lt;/h3&gt;
&lt;p&gt;import &lt;a href="https://github.com/mhmda-83/koochikokKoochikok%20(Redis).postman_collection.json"&gt;Postman Collection&lt;/a&gt; and &lt;a href="https://github.com/mhmda-83/koochikokKoochikok%20%5BDEV%5D.postman_environment.json"&gt;Postman Environment&lt;/a&gt; to use the APIs&lt;/p&gt;
&lt;h2&gt;
More Information about Redis Stack&lt;/h2&gt;
&lt;p&gt;Here some resources to help you quickly get started using Redis Stack. If you still have questions, feel free to ask them in the &lt;a href="https://discord.gg/redis" rel="nofollow"&gt;Redis Discord&lt;/a&gt; or on &lt;a href="https://twitter.com/redisinc" rel="nofollow"&gt;Twitter&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;
Getting Started&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;Sign up for a &lt;a href="https://redis.info/try-free-dev-to" rel="nofollow"&gt;free Redis Cloud account using this link&lt;/a&gt; and use the &lt;a href="https://developer.redis.com/create/rediscloud" rel="nofollow"&gt;Redis Stack database in&lt;/a&gt;…&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/mhmda-83/koochikok"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3ROP507O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b08mj24s7fspzs47hhnc.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3ROP507O--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b08mj24s7fspzs47hhnc.jpg" alt="Architecture" width="366" height="667"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Check out &lt;a href="https://redis.io/docs/stack/get-started/clients/#high-level-client-libraries"&gt;Redis OM&lt;/a&gt;, client libraries for working with Redis as a multi-model database.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Use &lt;a href="https://redis.info/redisinsight"&gt;RedisInsight&lt;/a&gt; to visualize your data in Redis.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Sign up for a &lt;a href="https://redis.info/try-free-dev-to"&gt;free Redis database&lt;/a&gt;.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>redishackathon</category>
      <category>node</category>
      <category>javascript</category>
      <category>redis</category>
    </item>
  </channel>
</rss>
