<?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: Rinshin Jalal</title>
    <description>The latest articles on DEV Community by Rinshin Jalal (@rinz).</description>
    <link>https://dev.to/rinz</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%2F697828%2F3e7de90b-4cac-4bf9-8105-2f86e62a74d0.png</url>
      <title>DEV Community: Rinshin Jalal</title>
      <link>https://dev.to/rinz</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rinz"/>
    <language>en</language>
    <item>
      <title>WeTube Server 🌐 - YT Clone with Redis</title>
      <dc:creator>Rinshin Jalal</dc:creator>
      <pubDate>Mon, 29 Aug 2022 19:06:00 +0000</pubDate>
      <link>https://dev.to/rinz/wetube-server-yt-clone-with-redis-2me9</link>
      <guid>https://dev.to/rinz/wetube-server-yt-clone-with-redis-2me9</guid>
      <description>&lt;h3&gt;
  
  
  Overview of My Submission
&lt;/h3&gt;

&lt;p&gt;WeTube Server - The backend of WeTube, an OpenSource YouTube clone,&lt;/p&gt;

&lt;p&gt;I've had this project in my plans for about a year now.I have no idea why? &lt;br&gt;
possibly because I watch YouTube a lot!&lt;/p&gt;

&lt;p&gt;There are several tutorials on YouTube for that as well, but I chose to make it myself. &lt;/p&gt;

&lt;p&gt;I received an email regarding the Dev x Redis hackathon when I started the project two days ago.&lt;br&gt;
And I decided to build it with Express and Redis.&lt;br&gt;
And here are the outcomes. &lt;/p&gt;

&lt;p&gt;Actually, I had planned to create the front end as well, but I was unable to do so in two days. &lt;/p&gt;

&lt;p&gt;So I'm submitting the Backend.&lt;/p&gt;

&lt;p&gt;Accessible Routes&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--320rMhNY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1c6mhwtwc7z9qsomhg2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--320rMhNY--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t1c6mhwtwc7z9qsomhg2.png" alt="Accessible Routes" width="477" height="897"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is a screen photo of the Frontend (Home Page), which I was unable to complete.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WVkxtPOF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/svss9wcfshs67jhs08dd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WVkxtPOF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/svss9wcfshs67jhs08dd.png" alt="Sample image of Frontend(Home Page), I could not finish" width="880" height="409"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h4&gt;
  
  
  live demo (server) - &lt;a href="https://wetube-server-production.up.railway.app"&gt;https://wetube-server-production.up.railway.app&lt;/a&gt;
&lt;/h4&gt;


&lt;h3&gt;
  
  
  Submission Category: Wacky Wildcards
&lt;/h3&gt;
&lt;h3&gt;
  
  
  Language Used: JavaScript
&lt;/h3&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/Rinshin-Jalal"&gt;
        Rinshin-Jalal
      &lt;/a&gt; / &lt;a href="https://github.com/Rinshin-Jalal/WeTube-Server"&gt;
        WeTube-Server
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
WeTube Server 🌐
&lt;/h1&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/88965873/187291172-7ff9d441-ad3c-4971-9b56-bcdfb2e9d247.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wvxXbmkG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/88965873/187291172-7ff9d441-ad3c-4971-9b56-bcdfb2e9d247.png" alt="logo"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;WeTube Server - The backend of WeTube, an OpenSource YouTube clone.&lt;/p&gt;
&lt;p&gt;This project has been in my plans🗂️ for about a year.&lt;/p&gt;
&lt;p&gt;At the same time I started this two days ago, I received an email about the hackathon, and&lt;/p&gt;
&lt;p&gt;I attempted to build it using redis and express&lt;/p&gt;
&lt;p&gt;Accessible Routes 👇‍&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/88965873/187291449-4930e34c-1846-46ff-8bad-11b69a86e78f.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GDGEmfDW--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/88965873/187291449-4930e34c-1846-46ff-8bad-11b69a86e78f.png" alt="Accessible Routes"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Screenshot of Frontend (not completed) 👇‍
&lt;a rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/88965873/187292361-e0eb484b-d866-4835-8636-2e05a9d093ab.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--96Ltnq5r--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://user-images.githubusercontent.com/88965873/187292361-e0eb484b-d866-4835-8636-2e05a9d093ab.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
live demo (server) - &lt;a href="https://wetube-server-production.up.railway.app" rel="nofollow"&gt;https://wetube-server-production.up.railway.app&lt;/a&gt;
&lt;/h3&gt;
&lt;h2&gt;
How it works&lt;/h2&gt;
&lt;h3&gt;
How the data is stored:&lt;/h3&gt;
&lt;p&gt;For the development, I used the &lt;code&gt;Redis-OM node&lt;/code&gt;
There are 4 different schemas: the User, Token, Video, and Comment Schemas.&lt;/p&gt;
&lt;h4&gt;
1. &lt;code&gt;User&lt;/code&gt; schema :&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;entityID: string&lt;/li&gt;
&lt;li&gt;email: string&lt;/li&gt;
&lt;li&gt;username: string&lt;/li&gt;
&lt;li&gt;password: number&lt;/li&gt;
&lt;li&gt;profile: string&lt;/li&gt;
&lt;li&gt;followers: string[]&lt;/li&gt;
&lt;li&gt;isVerified: boolean&lt;/li&gt;
&lt;li&gt;videos: string[]&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;code&gt;entityId&lt;/code&gt; and &lt;code&gt;username&lt;/code&gt; are indexed here, allowing us to find users by entityId and username.&lt;/p&gt;
&lt;h4&gt;
2. &lt;code&gt;Token&lt;/code&gt; schema :&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;entityId: string&lt;/li&gt;
&lt;li&gt;user: string&lt;/li&gt;
&lt;li&gt;token: string&lt;/li&gt;
&lt;li&gt;passwordReset: boolean&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This was used to store the…&lt;/p&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Rinshin-Jalal/WeTube-Server"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://redis.io/"&gt;Redis&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://redis.com/try-free/"&gt;Redis Cloud&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/redis/redis-om-node"&gt;Redis OM for Node&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/express"&gt;Express&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/multer"&gt;Multer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/cloudinary"&gt;Cloudinary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/multer-storage-cloudinary"&gt;Multer-Storage-Cloudinary&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.npmjs.com/package/nodemailer"&gt;Nodemailer&lt;/a&gt; &lt;/li&gt;
&lt;/ul&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>
    </item>
  </channel>
</rss>
