<?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: Mahlil Mahee</title>
    <description>The latest articles on DEV Community by Mahlil Mahee (@mahlilmahee).</description>
    <link>https://dev.to/mahlilmahee</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%2F779501%2F6db30734-fb2a-4910-b0b9-ecd1ff91d2e3.png</url>
      <title>DEV Community: Mahlil Mahee</title>
      <link>https://dev.to/mahlilmahee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mahlilmahee"/>
    <language>en</language>
    <item>
      <title>Using React Leaflet with React tutorial</title>
      <dc:creator>Mahlil Mahee</dc:creator>
      <pubDate>Thu, 09 Feb 2023 18:27:18 +0000</pubDate>
      <link>https://dev.to/mahlilmahee/using-react-leaflet-with-react-tutorial-1lk6</link>
      <guid>https://dev.to/mahlilmahee/using-react-leaflet-with-react-tutorial-1lk6</guid>
      <description>&lt;p&gt;Lets go through a short description of it &lt;/p&gt;

&lt;p&gt;**What is React Leaflet ? &lt;/p&gt;

&lt;p&gt;React-Leaflet is a library for integrating the popular open-source JavaScript library for maps, Leaflet, into React applications. It provides a React-friendly API for rendering maps, markers, popups, and other map-related components, making it easier to work with Leaflet in React. React-Leaflet also provides a set of higher-level components for working with common map use cases, such as adding markers and popups to the map, or rendering paths on the map. With React-Leaflet, developers can build interactive, mobile-friendly maps with ease, while still taking advantage of the full feature set offered by the Leaflet library.&lt;/p&gt;

&lt;p&gt;I did not have credit card to work with google map Api then I found it to work, and it worked superb.&lt;br&gt;
** How to set up React leaflet in react ? &lt;/p&gt;

&lt;p&gt;To set up a React-Leaflet project, you will need to follow these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Create a new project:
You can create a new React project using Create React App (CRA) by running the following command in your terminal:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;npx create-react-app my-app&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install React-Leaflet:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Run the following command in your terminal to install the React-Leaflet library:&lt;br&gt;
 npm install react-leaflet &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install Leaflet:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Run the following command in your terminal to install the Leaflet library:&lt;/p&gt;

&lt;p&gt;npm install leaflet&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Import the libraries in your React component:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In your React component, you need to import the necessary components from the React-Leaflet library.&lt;br&gt;
For example, to use a Map component, you can import it like **this:&lt;/p&gt;

&lt;p&gt;** import { Map, TileLayer } from 'react-leaflet' ** **&lt;/p&gt;

&lt;p&gt;I have used here a basic map lets go through the codes here &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe0swo8abci0h7qkuc62m.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe0swo8abci0h7qkuc62m.png" alt="Image description" width="800" height="505"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that's it! You now have a basic React-Leaflet map in your project. You can customize it further by adding markers, popups, and other Leaflet components.&lt;/p&gt;

&lt;p&gt;Now let me help you with a common error most of the case I have deal with  this &lt;/p&gt;

&lt;p&gt;after following this steps you will see your map like this :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx1oduhrcq1q9yjg6rqow.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx1oduhrcq1q9yjg6rqow.png" alt="some code written in react with react leaflet " width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To solve this you have to do two things &lt;/p&gt;

&lt;p&gt;First one , you have to import the css into your project root folder may be in index.js or app.js&lt;br&gt;&lt;br&gt;
Second one , you have to set the height and width of your mapContainer component .And then it will work fine &lt;/p&gt;

&lt;p&gt;** How to add marker in React leaflet ? &lt;/p&gt;

&lt;p&gt;To add a marker to a React-Leaflet map, you can use the Marker component provided by the library. Here's an example of how to do it:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmf1k7ekh5y0hz39uqyo1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmf1k7ekh5y0hz39uqyo1.png" alt="this is an image containing some code specialized in react and react leaflet " width="800" height="558"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this example, the position variable is used to set the initial center of the map, while the marker Position variable is used to set the position of the marker on the map. The Marker component is added to the Map component, and the position prop is set to the marker Position variable.&lt;/p&gt;

&lt;p&gt;This will add a marker to the map at the specified position. You can customize the marker further by using additional props, such as icon, popup, etc. I will try to discuss them later.&lt;/p&gt;

&lt;p&gt;and now I will show the final result with these codes :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyxbl9c4xb8su810eb6x4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyxbl9c4xb8su810eb6x4.png" alt="Image description" width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally , it is really useful and easy to use for showing maps on the webpage . I have a brief story about this framework  and I will give credit to open Ai to help me write this story related to React leaflet and it's uses .&lt;/p&gt;

&lt;p&gt;Once upon a time, there was a software engineer named Alice who was building a web-based application for a tour company. The company wanted to allow customers to explore the locations of their tours on a map.&lt;/p&gt;

&lt;p&gt;Alice heard about React-Leaflet and thought it would be a great fit for the project. She quickly got started by setting up a new React project and installing React-Leaflet and Leaflet.&lt;/p&gt;

&lt;p&gt;She created a new component for the map, and added a basic map to the component using the Map and TileLayer components from React-Leaflet. She then added markers for each tour location using the Marker component.&lt;/p&gt;

&lt;p&gt;Next, she wanted to display information about each tour location when a user clicks on the marker. She used the Popup component from React-Leaflet to create a popup for each marker, and displayed information such as the tour name, description, and price.&lt;/p&gt;

&lt;p&gt;The customers loved the map and found it very helpful in selecting a tour. The tour company was impressed with Alice's work and asked her to add more features to the map, such as a search bar to search for specific tours and a legend to show the different types of tours.&lt;/p&gt;

&lt;p&gt;Alice added these features, and the map became even more user-friendly. The tour company was thrilled with the results, and the customers loved using the map to explore and select their tours.&lt;/p&gt;

&lt;p&gt;And so, the story ends with Alice being praised for her excellent work using React-Leaflet to build a user-friendly and interactive map for the tour company.&lt;/p&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>How Does JavaScript Work ???</title>
      <dc:creator>Mahlil Mahee</dc:creator>
      <pubDate>Wed, 08 Feb 2023 06:37:09 +0000</pubDate>
      <link>https://dev.to/mahlilmahee/how-does-javascript-work--5ed4</link>
      <guid>https://dev.to/mahlilmahee/how-does-javascript-work--5ed4</guid>
      <description>&lt;p&gt;In a short JavaScript work asynchronously with help of event loop in a single threaded environment to run non stop in the browser .&lt;/p&gt;

&lt;p&gt;Now going To explain it more deeper .&lt;/p&gt;

&lt;p&gt;﻿Basically JavaScript run in the browser with the help of a interpreter which interprets each line of JavaScript code according to the given order and execute it in the browser .JavaScript is a high level , dynamic and interpreted programming language which is widely used for building web apps though it has a wide range of using field. JavaScript can interact with the DOM (document object model ) to dynamically modify the content , structure and styles of the page . When a user interact with the page , JavaScript respond to events such as clicking on a button and updating the DOM and executing code .The code is executed in JavaScript engine which are mostly in-build with the browsers, which parses and runs the code . JavaScript&lt;br&gt;
 can also make network requests to fetch data from a server allowing for dynamic and up to date information to be displayed on the page .&lt;/p&gt;

&lt;p&gt;what is JavaScript event loop? want to here a story from me ?&lt;/p&gt;

&lt;p&gt;Once upon a time, there was a busy little town called JavaScript Land. The town was always bustling with activity, as the inhabitants went about their daily tasks. One day, the mayor of JavaScript Land realized that the town was growing rapidly, and the number of tasks that needed to be completed was increasing every day.&lt;/p&gt;

&lt;p&gt;To keep up with the demand, the mayor decided to create a new system for managing all the tasks in the town. He called it the "Event Loop." The Event Loop was designed to handle all the tasks that needed to be done in the town, one by one.&lt;/p&gt;

&lt;p&gt;Each task in JavaScript Land was placed in a queue, and the Event Loop would work its way through the queue, completing each task in turn. When a task was completed, the Event Loop would move on to the next task in the queue.&lt;/p&gt;

&lt;p&gt;At first, things ran smoothly in JavaScript Land. The Event Loop worked efficiently, and the inhabitants were happy with the new system. However, as time went by, more and more tasks were added to the queue.&lt;/p&gt;

&lt;p&gt;The Event Loop started to get bogged down, and the townspeople grew frustrated. Some tasks were taking much longer to complete than they should have, and others were being pushed aside and forgotten.&lt;/p&gt;

&lt;p&gt;The mayor of JavaScript Land realized that he needed to find a solution to the problem. He decided to prioritize certain tasks, so that the most important ones would be completed first. This way, the townspeople could get back to their daily tasks as quickly as possible.&lt;/p&gt;

&lt;p&gt;And so, the Event Loop was improved, and JavaScript Land ran smoothly once again. The Event Loop continued to handle all the tasks in the town, one by one, making sure that the most important tasks were completed first. And the townspeople lived happily ever after.&lt;/p&gt;

&lt;p&gt;So , did you understand the main theme of this story event loop is mechanism which helps JavaScript to interpret one piece of code at a time in an asynchronous way to run smoothly in the browser.&lt;/p&gt;

&lt;p&gt;Now lets explain the asynchronous term here with a new story :::)))﻿&lt;/p&gt;

&lt;p&gt;Sure, let's consider a real-life scenario to understand asynchronous processing in JavaScript.&lt;/p&gt;

&lt;p&gt;Imagine you're at a fast-food restaurant and you place an order for a burger and fries. You have to wait for your food to be prepared, but you don't want to stand around and do nothing while you wait. So, you decide to use the time to do something else, like browsing your phone or reading a book.&lt;/p&gt;

&lt;p&gt;This is a classic example of asynchronous processing in real life. While you wait for your food to be prepared, you can do other things, and you'll be notified when your food is ready.&lt;/p&gt;

&lt;p&gt;In the same way, asynchronous processing in JavaScript allows you to carry out long-running tasks in the background, without blocking the main thread of execution. So, your website or application can continue to respond to user interactions, even while a task is being processed in the background.&lt;/p&gt;

&lt;p&gt;This makes your website or application more responsive and efficient, and your users won't have to wait for long-running tasks to complete before they can continue using your website or application.&lt;/p&gt;

&lt;p&gt;That is all for today, you see how JavaScript had evolved to serve us more efficient and good user experience in this digital world as he knows time is valuable, so he saves a lot of time helping the website to be more efficient.&lt;/p&gt;

</description>
      <category>gratitude</category>
    </item>
    <item>
      <title>Building my First Chrome extension with React js</title>
      <dc:creator>Mahlil Mahee</dc:creator>
      <pubDate>Tue, 31 Jan 2023 03:05:07 +0000</pubDate>
      <link>https://dev.to/mahlilmahee/building-my-first-chrome-extension-with-react-js-3826</link>
      <guid>https://dev.to/mahlilmahee/building-my-first-chrome-extension-with-react-js-3826</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7x1xv5rp881a2b4klgle.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7x1xv5rp881a2b4klgle.png" alt="Image description" width="766" height="713"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Suddenly a thought come in my mind to see how people are building chrome extensions for themselves . I searched on google then read some blogs and after that I got my hand dirty on making a chrome extension for my brain dopamine rush .&lt;/p&gt;

&lt;p&gt;It is really simple to build just a few process we need to follow here to make any website or web-app into a extension. &lt;br&gt;
The important thing we need to do here is to change our manifest.json file with the codes I am writing here &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo3q8ymn56z9zintsth7o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fo3q8ymn56z9zintsth7o.png" alt="Image description" width="800" height="580"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is a basic version so You will not have any problem to understand it lets explore what I have written here &lt;/p&gt;

&lt;p&gt;There we have manifest version it should be an integer and a name and short-name for the extension ,also we have a description here for the extension .&lt;br&gt;
then here comes the action field and inside here we have key named "defauld_popup"  and the here we need to give the name the html file we want to show as  a chrome pop-up here . And a logo for the pop-up as you see .&lt;/p&gt;

&lt;p&gt;and wait our 80% work is finished here you can add more fields in the manifest.json according to the need of your app.&lt;/p&gt;

&lt;p&gt;Other important things that we can do with manifest file but not neceassary for this project &lt;br&gt;
1.Extension name&lt;br&gt;
2.Description&lt;br&gt;
3.Version number&lt;br&gt;
4.Permissions required by the extension&lt;br&gt;
5.Background scripts to be executed&lt;br&gt;
6.Content scripts to be injected&lt;br&gt;
7.Icons for the extension&lt;br&gt;
8.Popup pages for the extension&lt;br&gt;
9.Options pages for the extension&lt;br&gt;
10.Browser action or page action&lt;br&gt;
we can take any permision that we need for our web-app. &lt;/p&gt;

&lt;h3&gt;
  
  
  Now move forward to the next level in the manifest file I have linked the [index.html] file as I am using React and all my Main data is linked with that html file .
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0s088ljx0gywj1csso82.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0s088ljx0gywj1csso82.png" alt="Image description" width="681" height="702"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Before publishing it to the chrome first create the build folder here to deploy it .
&lt;/h4&gt;

&lt;p&gt;with the command ## npm run build&lt;/p&gt;

&lt;p&gt;then go to  *&lt;em&gt;### chrome://extensions/ *&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;switch to developer mode and there you will see an option name  *&lt;em&gt;Load Unpacked *&lt;/em&gt; go there and deploy the build or dest folder that you have created for your project .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2rt189y7iu99z8563rdf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2rt189y7iu99z8563rdf.png" alt="Image description" width="800" height="214"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  note :
&lt;/h1&gt;

&lt;p&gt;If you are not using React then you donot need build folder just simply create a manifest file and add all the commands there and deploy it .&lt;/p&gt;

&lt;p&gt;then you will see your extension there like this &lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjavmit32emoqt03stims.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjavmit32emoqt03stims.png" alt="Image description" width="470" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;go to the extensions tab and pin your extension then open it  . As I have created a simply quote generator with react it will show me the website as a extension .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6mu5bwzpjin1u9vj9v4g.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6mu5bwzpjin1u9vj9v4g.png" alt="Image description" width="800" height="603"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Note : Every time you make changes there you have to make the build folder every time and had to reload the extension to see the changes . I will bring more detailed blog about chrome extensions . Till then try the simple and basic one
&lt;/h1&gt;

</description>
      <category>gratitude</category>
    </item>
    <item>
      <title>Take full-shot of your Websites</title>
      <dc:creator>Mahlil Mahee</dc:creator>
      <pubDate>Wed, 04 Jan 2023 02:18:19 +0000</pubDate>
      <link>https://dev.to/mahlilmahee/take-full-shot-of-your-websites-3jja</link>
      <guid>https://dev.to/mahlilmahee/take-full-shot-of-your-websites-3jja</guid>
      <description>&lt;p&gt;As a developer or designer everyone must need a tool to fully capture their design to show others. It might sound easy but not for the software available in the market mostly are paid . &lt;/p&gt;

&lt;p&gt;And for that I make a way out for myself with a chrome extension which is fully free to use . &lt;/p&gt;

&lt;p&gt;with more than 5M users its a really free to use productive tool . &lt;br&gt;
you can find it "GoFullPage - Full Page Screen Capture" on google just write and it will appear than add it to your chrome . That is all a problem is solved with a free tool !!!!&lt;/p&gt;

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

</description>
    </item>
    <item>
      <title>Deploy Node App in Vercel</title>
      <dc:creator>Mahlil Mahee</dc:creator>
      <pubDate>Sun, 01 Jan 2023 15:28:19 +0000</pubDate>
      <link>https://dev.to/mahlilmahee/deploy-node-app-in-vercel-1jj4</link>
      <guid>https://dev.to/mahlilmahee/deploy-node-app-in-vercel-1jj4</guid>
      <description>&lt;p&gt;After the finishing of the era of Heruku free tiar , I had to find out a hosting platform for deploying my server codes or backend codes. I have tried cyclic, render, railway and vercel . &lt;br&gt;
Among them Railway do not allow us to host our app live more than 21 days in the free plan .  &lt;/p&gt;

&lt;p&gt;And Render allow us this feature but it goes sleep in every 15 minutes of inactivity of the api we have called. &lt;/p&gt;

&lt;p&gt;For that I loved using the free version of Cyclic and Vercel.&lt;/p&gt;

&lt;p&gt;Today I am going to discuss about how to deploy node app in the vercel and Next day I will be showing the same method for Cyclic. &lt;/p&gt;

&lt;p&gt;Check out the process donot miss any of them otherwise it will make you Mad like me :&lt;/p&gt;

&lt;p&gt;1 . We need to export our node file so that others can access the files or codes from the file .&lt;br&gt;
just write the code at the end point of your node js file &lt;br&gt;
   module.exports = app;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmylnjrhpkvdltsfm03cv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmylnjrhpkvdltsfm03cv.png" alt="Image description" width="757" height="340"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Then the most important things to do is adding a vercel.json file in the root of your project . And write down the following code their in the file &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F69pir1y8a6c0u1fdf3lg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F69pir1y8a6c0u1fdf3lg.png" alt="Image description" width="772" height="367"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and the file structure should be like this &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fptpjrqeidvok8wndzq3s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fptpjrqeidvok8wndzq3s.png" alt="Image description" width="270" height="517"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Now make a github repository and push all the codes there . And go to vercel and log in with github it will make easiar for you to find all the repository you added and finding the needed one .&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now go to dashboard and click on add new select project and then select the github repository which contain all of your project files .&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsbgeskjj4y7gbx7k7kg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpsbgeskjj4y7gbx7k7kg.png" alt="Image description" width="270" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Then it will show you the project configuration page . You donot need to add anything there . But If you have env variable then their is a section for you where you can add them &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqar54snztprjan4svp72.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqar54snztprjan4svp72.png" alt="Image description" width="800" height="517"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvdtntxlyjo5mzlud9bks.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvdtntxlyjo5mzlud9bks.png" alt="Image description" width="800" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;And then deploy . And it will take you to the project page .There you will get a domain section and click on them it will take you to the live site of your project . &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That is all for today .Deploy you site and share with your clients . &lt;/p&gt;

</description>
      <category>welcome</category>
    </item>
    <item>
      <title>Deploy your webapp in Netlify</title>
      <dc:creator>Mahlil Mahee</dc:creator>
      <pubDate>Wed, 28 Dec 2022 17:22:54 +0000</pubDate>
      <link>https://dev.to/mahlilmahee/deploy-your-webapp-in-netlify-5ge1</link>
      <guid>https://dev.to/mahlilmahee/deploy-your-webapp-in-netlify-5ge1</guid>
      <description>&lt;p&gt;As a developer we need to show our works to different persons for that we can not use our local server to show them.That is the time we need a platform to host our website .And hosting our website we can easily share our webapp with anyone who wants to see. Though there are a lots of hosting platform avaiable at the moment paid and free , I am gonna share the easiest one I think and Thats is Netlify .&lt;/p&gt;

&lt;h1&gt;
  
  
  To host a website into netlify there are also a few paths exist and one of them is to simply drag and drop !!!! hurrah !! your website is live now .
&lt;/h1&gt;

&lt;p&gt;To host a website we need some procedure to follow and it is really easy . Lets get start&lt;/p&gt;

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

&lt;p&gt;We can not drag the whole webapp there it will take a huge space and memory . For that we need something called build or dist folder .&lt;/p&gt;

&lt;p&gt;And we need to use the command : npm run build&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xqJBBYn3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cace9xkpkegdithqnqb1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xqJBBYn3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cace9xkpkegdithqnqb1.png" alt="Image description" width="846" height="254"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then you will see that a 'build' or 'dist' named folder has been created at the root of your project .&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--OFdxT9wy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b9878ljhmj8ssu529wkw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OFdxT9wy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b9878ljhmj8ssu529wkw.png" alt="Image description" width="162" height="237"&gt;&lt;/a&gt;&lt;br&gt;
3 Now go to the netlify website and just take the 'build' or 'dist' folder from your application and just drop it here . Just wait for a few seconds and your website is live.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1OoO9Wk9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yaofmr11zvdstdbhb81f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1OoO9Wk9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yaofmr11zvdstdbhb81f.png" alt="Image description" width="880" height="387"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;It's always seems impossible until its done .---Nelson Mandela&lt;/p&gt;
&lt;/blockquote&gt;

</description>
      <category>webdev</category>
      <category>hosting</category>
      <category>netlify</category>
      <category>blog</category>
    </item>
  </channel>
</rss>
