<?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: Jaanchal1</title>
    <description>The latest articles on DEV Community by Jaanchal1 (@jaanchal1).</description>
    <link>https://dev.to/jaanchal1</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%2F917183%2F21c9eb93-b283-4c99-8709-0482a72bbde0.png</url>
      <title>DEV Community: Jaanchal1</title>
      <link>https://dev.to/jaanchal1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jaanchal1"/>
    <language>en</language>
    <item>
      <title>File Manager - A free file sharing platform for all</title>
      <dc:creator>Jaanchal1</dc:creator>
      <pubDate>Sun, 19 Feb 2023 12:42:51 +0000</pubDate>
      <link>https://dev.to/jaanchal1/file-manager-a-free-file-sharing-platform-for-all-4jij</link>
      <guid>https://dev.to/jaanchal1/file-manager-a-free-file-sharing-platform-for-all-4jij</guid>
      <description>&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;I built a file manager for people to share files freely on the internet&lt;/p&gt;

&lt;h3&gt;
  
  
  Features
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Allows new users to signup so that they can share files&lt;/li&gt;
&lt;li&gt;Allows users to upload files &amp;amp; generate a public shareable link&lt;/li&gt;
&lt;li&gt;Allows the user to control whether an uploaded file is public or not&lt;/li&gt;
&lt;li&gt;Allows users to preview the files before downloading them&lt;/li&gt;
&lt;/ul&gt;

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

&lt;p&gt;Integration Innovators&lt;/p&gt;

&lt;h3&gt;
  
  
  App Link
&lt;/h3&gt;

&lt;p&gt;&lt;a href="http://172.104.50.24"&gt;http://172.104.50.24&lt;/a&gt;&lt;br&gt;
Test Credentials:&lt;br&gt;
username: test&lt;br&gt;
password: test@123&lt;/p&gt;

&lt;h3&gt;
  
  
  Screenshots
&lt;/h3&gt;

&lt;p&gt;Dashboard&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GJaNXi-m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o4qamrbb1rmeabaknxkb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GJaNXi-m--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o4qamrbb1rmeabaknxkb.png" alt="Dashboard" width="880" height="281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Public File Preview - Audio&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yTkQOJOJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r489agferlqh4pk9wu0z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yTkQOJOJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r489agferlqh4pk9wu0z.png" alt="Public File Preview - Audio" width="880" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Public File Preview - PDF&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--E6GCcn-L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6d396p65ntbjv8ioqy7e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--E6GCcn-L--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6d396p65ntbjv8ioqy7e.png" alt="Public File Preview - PDF" width="880" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Public File Preview - Text&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--TNckEg8H--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a8ge895n6briboedkmhl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--TNckEg8H--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a8ge895n6briboedkmhl.png" alt="Public File Preview - Text" width="880" height="439"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Public File Preview - Video&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--5gykZ5e9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9hj41j63ptzyhekqash2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5gykZ5e9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9hj41j63ptzyhekqash2.png" alt="Public File Preview - Video" width="880" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Login&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6flIIjR0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a04974s3tdaa1e6x67df.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6flIIjR0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/a04974s3tdaa1e6x67df.png" alt="Login" width="880" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Signup&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JQvVJb-3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjo0fqx6kuth0v8jw90n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JQvVJb-3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bjo0fqx6kuth0v8jw90n.png" alt="Signup" width="880" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Description
&lt;/h3&gt;

&lt;p&gt;File manager is an online free-to-use platform where users can store &amp;amp; share their files with each other. The files can be either public or private as per the user's needs. The backend is built using Typescript &amp;amp; frontend uses Bootstrap &amp;amp; Edge templating.&lt;/p&gt;

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

&lt;p&gt;&lt;a href="https://github.com/jaanchal1/file-manager"&gt;https://github.com/jaanchal1/file-manager&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Permissive License
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://github.com/jaanchal1/file-manager/blob/main/LICENSE"&gt;MIT&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;Recently, I've been looking for a solution to share my files online but all the sharers were either paid or slow or had some kind of time restriction. So, I decided to build this file manager so that more people like me can share files with each other online for free without any worry.&lt;/p&gt;

&lt;h3&gt;
  
  
  How I built it
&lt;/h3&gt;

&lt;p&gt;I built this using the AdonisJS framework for the backend &amp;amp; bootstrap for the frontend along with Linode services. I used the following Linode services:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Object Storage: Linode's object storage is S3 compatible so I used it to store all the files that were uploaded by users. It was very easy to set up &amp;amp; use due to Linode's documentation. It was my first time using any sort of object storage and I got to learn how S3 &amp;amp; object storage in general work due to this&lt;/li&gt;
&lt;li&gt;Managed Postgres DB: Linode provides a managed PostgreSQL database which means that I don't have to configure it much and still get the industry standard database. This was very useful to me as I'm still learning about managing databases and saved me a lot of trouble along the way.&lt;/li&gt;
&lt;li&gt;Linode: I created a linode using &lt;a href="https://www.linode.com/docs/products/compute/compute-instances/guides/set-up-and-secure/"&gt;this&lt;/a&gt; guide &amp;amp; installed node.js &amp;amp; nginx on it. This was my first time setting up a virtual machine from scratch and Linode's guides helped me out a lot on this journey.&lt;/li&gt;
&lt;li&gt;Linode Firewalls: Originally, I did not know anything about having a firewall on the Linode machine but reading Linode's guides gave me an idea about them &amp;amp; helped me understand their usefulness. Using Linode's firewall I blocked all ports except for 22 &amp;amp; 80 on my machine which helped in securing it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Overall, I gained many new skills &amp;amp; knowledge along the way due to Linode's free 100$ credits and this hackathon. My next step would be to figure out how to make better use of the free credits &amp;amp; keep on improving my skills.&lt;/p&gt;

&lt;h3&gt;
  
  
  Future Scope
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Allow users more control over who can access their files&lt;/li&gt;
&lt;li&gt;Store statistics regarding page views for public files&lt;/li&gt;
&lt;li&gt;Make APIs for uploading files so that this can be turned into a SaaS&lt;/li&gt;
&lt;li&gt;Better UI for users&lt;/li&gt;
&lt;li&gt;Add CDN for retrieving files&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>linodehackathon</category>
    </item>
    <item>
      <title>Redis-OM Lambda CDK</title>
      <dc:creator>Jaanchal1</dc:creator>
      <pubDate>Mon, 29 Aug 2022 07:57:18 +0000</pubDate>
      <link>https://dev.to/jaanchal1/redis-om-lambda-cdk-47kc</link>
      <guid>https://dev.to/jaanchal1/redis-om-lambda-cdk-47kc</guid>
      <description>&lt;h3&gt;
  
  
  Overview of My Submission
&lt;/h3&gt;

&lt;p&gt;This sample shows how to define a Lambda function which uses &lt;a href="https://github.com/redis/redis-om-node"&gt;Redis-om&lt;/a&gt; via AWS Cloud Development Kit. This is a fork of &lt;a href="https://github.com/aws-samples/prisma-lambda-cdk/"&gt;prisma-lambda-cdk&lt;/a&gt; sample repo which replaces mysql/postgres with redis stack &amp;amp; prisma with Redis-om.&lt;/p&gt;

&lt;p&gt;By this sample, you can see how a Lambda function which uses Redis OM can be deployed with CDK, how indexes can be created from Lambda, and how Redis OM works in Lambda.&lt;/p&gt;

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

&lt;p&gt;Minimalism Magicians&lt;/p&gt;

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

&lt;p&gt;Typescript&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/jaanchal1"&gt;
        jaanchal1
      &lt;/a&gt; / &lt;a href="https://github.com/jaanchal1/redis-om-lambda-cdk"&gt;
        redis-om-lambda-cdk
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Build and deploy a Lambda function with Redis OM by AWS Cloud Development Kit.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Redis-OM Lambda CDK Sample Application&lt;/h1&gt;
&lt;p&gt;This sample shows how to define a Lambda function which uses &lt;a href="https://github.com/redis/redis-om-node"&gt;Redis-om&lt;/a&gt; via AWS Cloud Development Kit. This is a fork of &lt;a href="https://github.com/aws-samples/prisma-lambda-cdk/"&gt;prisma-lambda-cdk&lt;/a&gt; sample repo which replaces mysql/postgres with redis stack &amp;amp; prisma with Redis-om.&lt;/p&gt;
&lt;p&gt;Redis OM is an open source object mapping, search etc library for Redis written in Typescript &amp;amp; very useful with its developer friendly API.&lt;/p&gt;
&lt;p&gt;By this sample, you can see how a Lambda function which uses Redis OM can be deployed with CDK, how indexes can be created from Lambda, and how Redis OM works in Lambda.&lt;/p&gt;
&lt;h3&gt;
Lambda Dashboard&lt;/h3&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/jaanchal1/redis-om-lambda-cdk/raw/main/img/aws-console-lambda.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H6THRMH9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/jaanchal1/redis-om-lambda-cdk/raw/main/img/aws-console-lambda.png" alt="AWS Lambda console output"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
How it works&lt;/h2&gt;
&lt;h3&gt;
Architecture&lt;/h3&gt;
&lt;p&gt;This sample consists of the following AWS services:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Amazon VPC&lt;/li&gt;
&lt;li&gt;Redis Cloud (Amazon doesn't offer redis stack yet)&lt;/li&gt;
&lt;li&gt;AWS Lambda&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;There're two Lambda functions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;a function that reads and writes records from/to Redis &lt;a href="https://github.com/jaanchal1/redis-om-lambda-cdkbackend/handler.ts"&gt;&lt;code&gt;handler.ts&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;a function that sets up the index for Request entity &lt;a href="https://github.com/jaanchal1/redis-om-lambda-cdkbackend/migration-runner.ts"&gt;&lt;code&gt;migration-runner.ts&lt;/code&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;
How the&lt;/h3&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/jaanchal1/redis-om-lambda-cdk"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


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

&lt;h4&gt;
  
  
  Performance Benchmarks
&lt;/h4&gt;

&lt;p&gt;I did the testing for both lambda functions by creating a url for them and then using &lt;a href="https://k6.io/"&gt;k6&lt;/a&gt; to test them.&lt;br&gt;
Terminology:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;VU Count: Number of concurrent requests being made&lt;/li&gt;
&lt;li&gt;Duration: The duration for which test was run&lt;/li&gt;
&lt;li&gt;Function type: Type of Lambda function executed&lt;/li&gt;
&lt;li&gt;Prisma p95: p95 response time of prisma lambda function&lt;/li&gt;
&lt;li&gt;Redis OM p95: p95 response time of redis om lambda function&lt;/li&gt;
&lt;li&gt;Prisma p90: p90 response time of prisma lambda function&lt;/li&gt;
&lt;li&gt;Redis OM 90: p90 response time of redis om lambda function&lt;/li&gt;
&lt;li&gt;Prisma AVG: Avg response time of prisma lambda function&lt;/li&gt;
&lt;li&gt;Redis OM AVG: Avg response time of redis om lambda function&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;VU Count&lt;/th&gt;
&lt;th&gt;Duration&lt;/th&gt;
&lt;th&gt;Function Type&lt;/th&gt;
&lt;th&gt;Prisma p95&lt;/th&gt;
&lt;th&gt;Redis OM P95&lt;/th&gt;
&lt;th&gt;Prisma p90&lt;/th&gt;
&lt;th&gt;Redis OM p90&lt;/th&gt;
&lt;th&gt;Prisma AVG&lt;/th&gt;
&lt;th&gt;Redis OM AVG&lt;/th&gt;
&lt;th&gt;Prisma Failed Reqs&lt;/th&gt;
&lt;th&gt;Redis OM Failed Reqs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;30s&lt;/td&gt;
&lt;td&gt;Handler - Create Data&lt;/td&gt;
&lt;td&gt;91.99 ms&lt;/td&gt;
&lt;td&gt;67.56 ms&lt;/td&gt;
&lt;td&gt;74.57 ms&lt;/td&gt;
&lt;td&gt;60.4 ms&lt;/td&gt;
&lt;td&gt;71.56 ms&lt;/td&gt;
&lt;td&gt;57.16 ms&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;30s&lt;/td&gt;
&lt;td&gt;Handler - Create Data&lt;/td&gt;
&lt;td&gt;89.35ms&lt;/td&gt;
&lt;td&gt;65.7ms&lt;/td&gt;
&lt;td&gt;74ms&lt;/td&gt;
&lt;td&gt;59.19ms&lt;/td&gt;
&lt;td&gt;70.56ms&lt;/td&gt;
&lt;td&gt;54.73ms&lt;/td&gt;
&lt;td&gt;26.60%&lt;/td&gt;
&lt;td&gt;24.66%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;30s&lt;/td&gt;
&lt;td&gt;Handler - Retrieve Data&lt;/td&gt;
&lt;td&gt;698.56ms&lt;/td&gt;
&lt;td&gt;516.26ms&lt;/td&gt;
&lt;td&gt;600.07ms&lt;/td&gt;
&lt;td&gt;394.06ms&lt;/td&gt;
&lt;td&gt;547.38ms&lt;/td&gt;
&lt;td&gt;344.9ms&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;30s&lt;/td&gt;
&lt;td&gt;Migration Runner&lt;/td&gt;
&lt;td&gt;10.87s&lt;/td&gt;
&lt;td&gt;3.16s&lt;/td&gt;
&lt;td&gt;8.95s&lt;/td&gt;
&lt;td&gt;2.93s&lt;/td&gt;
&lt;td&gt;7.8s&lt;/td&gt;
&lt;td&gt;2.67s&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From these stats we can infer that there's a signifact performance boost when migrating schemas using Redis OM instead of Prisma.&lt;br&gt;
Reads from Redis are also faster than Mysql &amp;amp; while not much but writes are faster as well.&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>
    </item>
  </channel>
</rss>
