<?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>Forem: Ulloa Silva</title>
    <description>The latest articles on Forem by Ulloa Silva (@craftxdog).</description>
    <link>https://forem.com/craftxdog</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%2F1232956%2Ff004fd5b-2f62-4cd3-ae49-e6c0b4e8e4d8.jpg</url>
      <title>Forem: Ulloa Silva</title>
      <link>https://forem.com/craftxdog</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/craftxdog"/>
    <language>en</language>
    <item>
      <title>Creating ASP.NET Core Application using MVC Template</title>
      <dc:creator>Ulloa Silva</dc:creator>
      <pubDate>Wed, 17 Jan 2024 07:05:16 +0000</pubDate>
      <link>https://forem.com/craftxdog/creating-aspnet-core-application-using-mvc-template-4de4</link>
      <guid>https://forem.com/craftxdog/creating-aspnet-core-application-using-mvc-template-4de4</guid>
      <description>&lt;p&gt;&lt;strong&gt;In this article, I will delve into the process of crafting an ASP.NET Core Web Application utilizing the MVC (Model-View-Controller) Project Template.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Creating an ASP.NET Core MVC Application:
&lt;/h2&gt;

&lt;p&gt;The ASP.NET Core Framework offers a pre-built project template named ASP.NET Core Web App (Model-View-Controller), designed to streamline the creation of an ASP.NET Core MVC Application by automatically configuring the essential MVC components. Throughout this ASP.NET Core MVC course, we will exclusively employ the ASP.NET Core Web App (Model-View-Controller) Project Template to develop our applications. In the upcoming sections, we will explore a detailed, step-by-step guide on how to initiate this process.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Creating an ASP.NET Core Application using the MVC Project Template:&lt;/strong&gt; To initiate the creation of an ASP.NET Core Web Application using the MVC Project template, start by launching Visual Studio 2022. Next, navigate to the "Create a new project" tab, as illustrated in the image below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2kJSwIu9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rwkdt8ndkzibn2uhp274.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2kJSwIu9--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rwkdt8ndkzibn2uhp274.jpg" alt="Open" width="800" height="433"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upon selecting the "Create a new Project" tab, the ensuing window is the "Create a new Project" window. In this window, opt for C# as the programming language, All Platforms as the target platform, and Web as the project type from their respective dropdown menus, as emphasized below. Highlight and choose "ASP.NET Core Web App (Model-View-Controller)," as indicated below, and proceed by clicking the "Next" button, as illustrated in the image below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--24UGoxiP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mokdh0aqefty8pmi1jjm.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--24UGoxiP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mokdh0aqefty8pmi1jjm.jpg" alt="Open second" width="800" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After clicking the "Next" button, the subsequent window is the "Configure Your New Project" window. In this step, furnish the essential details to initialize a new ASP.NET Core project. Begin by assigning a fitting name to your project (e.g., SampleMVCWeb), specify the desired location for project creation, and set the solution name for the ASP.NET Core Web application. Conclude the process by clicking the "Create" button, as depicted in the image below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--diNeUfXp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ymzvl91zh02iv6tja1q.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--diNeUfXp--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9ymzvl91zh02iv6tja1q.jpg" alt="Open third" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upon clicking the "Create" button, the ensuing window is the "Additional Information" window. In this stage, you must make specific selections to configure your ASP.NET Core project. Choose the Framework as .NET 6.0 (Long-term support) and set the Authentication type to None. Additionally, ensure to check the boxes for Configure for HTTPS and Do not use top-level statements. Conclude this step by clicking the "Create" button, as illustrated in the image below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fsaFR77h--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/moxvfyljtz0mh0rr24to.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fsaFR77h--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/moxvfyljtz0mh0rr24to.jpg" alt="Open Fourth" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That concludes the process. Upon clicking the "Create" button, the project will be generated with the Web Application (Model-View-Controller) - MVC template, resulting in the following folder and file structure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--CHZjxsNg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7fcu43kmorolwish0eh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--CHZjxsNg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s7fcu43kmorolwish0eh.jpg" alt="Open five" width="303" height="488"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let us understand the project structure in detail.&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Dependencies: This folder includes the required dependencies, i.e., the required packages to run ASP.NET Core Application. If we add new packages as per our requirement, those packages will be added inside this Dependencies folder (Packages folder, which is a sub-folder of Dependencies).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Properties: This folder contains the launchsettings.json file and will only be used in the development environment. This will not be available when we publish the project and hence not available in any other environment.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;wwwroot: It is the project’s web root directory. The wwwroot folder going to contains all the static files such as .css, .js, and bootstrap files, etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Controllers: All the controller classes are in the Controllers folder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Models: All the model classes go into the Models folder.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Views: Contains Razor views (.cshtml) files for rendering HTML content. Razor is a view engine used in ASP.NET to create dynamic HTML.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Shared: Shared folder under the Views folder contains _Layout.cshtml. It is the default layout for the ASP.NET core app. It includes app header, footer, and navigation.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;appsettings.json: This file will contain the settings which we want throughout the application, such as connection string, application scope global variables, etc.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Program.cs: The Program class contains the Main method, the entry point to our ASP.NET Core Web Application. The Main method is responsible for setting the web host, configuring the services (Both Built-in and User-Defined), configuring the Middleware Components (Both Built-in and User-Defined), and starting the application so that the application can listen to the HTTP Incoming Requests.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;MVC Setup:&lt;/strong&gt;&lt;br&gt;
The ASP.NET Core Web App (Model-View-Controller) Project template inherently incorporates the essential configuration for MVC. To verify this, open the Program.cs class file, where you will observe that the necessary MVC Services and the MVC Request processing pipeline have been automatically integrated by the framework, as depicted in the image below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;namespace SampleMVCWeb
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var builder = WebApplication.CreateBuilder(args);

            // Add MVC Services to the container.
            builder.Services.AddControllersWithViews();

            var app = builder.Build();

            // Configure the HTTP request pipeline.
            if (!app.Environment.IsDevelopment())
            {
                app.UseExceptionHandler("/Home/Error");
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }

            app.UseHttpsRedirection();
            app.UseStaticFiles();

            app.UseRouting();

            app.UseAuthorization();

            //MVC Request Processing Pipeline
            app.MapControllerRoute(
                name: "default",
                pattern: "{controller=Home}/{action=Index}/{id?}");

            app.Run();
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Running the MVC Application:&lt;/strong&gt; The ASP.NET Core Web App (Model-View-Controller) Project template generates the Home Controller along with associated views. Let's execute the application to observe the output, as illustrated below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--d8-H6a1C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2hqghhc6ny3casvaj7p.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--d8-H6a1C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m2hqghhc6ny3casvaj7p.jpg" alt="Last one" width="623" height="290"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I hope it will be of great use to the community&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>aspnet</category>
      <category>aspdotnet</category>
      <category>mvc</category>
      <category>programming</category>
    </item>
    <item>
      <title>How to Create Database &amp; Collection in MongoDB</title>
      <dc:creator>Ulloa Silva</dc:creator>
      <pubDate>Tue, 09 Jan 2024 04:51:03 +0000</pubDate>
      <link>https://forem.com/craftxdog/how-to-create-database-collection-in-mongodb-c9i</link>
      <guid>https://forem.com/craftxdog/how-to-create-database-collection-in-mongodb-c9i</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
MongoDB is a NoSQL database solution that focuses on availability and scalability. The data is structured and stored in collections of JSON documents.&lt;br&gt;
By not using a fixed data structure, MongoDB provides a comprehensive solution for high-volume storage in a modern distributed system.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's start with this tutorial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; You can sign up for &lt;a href="https://www.mongodb.com/cloud/atlas/register"&gt;MongoDB Atlas&lt;/a&gt; and create an online database for free here.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0VdZWsLo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ly48lei9hf7tev2k3oex.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0VdZWsLo--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ly48lei9hf7tev2k3oex.png" alt="MongoDB Atlas" width="800" height="424"&gt;&lt;/a&gt;&lt;br&gt;
You can register with Google.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iHuKWcur--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h1nagjqbhxn9bpfrgh22.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iHuKWcur--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h1nagjqbhxn9bpfrgh22.png" alt="Google authentication" width="774" height="693"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Accept Privacy Policy &amp;amp; Terms of Service&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--SVBhK9Qc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cluimip7kvxv3yz34mu8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--SVBhK9Qc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cluimip7kvxv3yz34mu8.png" alt="Accept Privacy" width="800" height="273"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Answer the following questions according to your needs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--nHaoCFtm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjc31aaf2yarcl3ywilx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--nHaoCFtm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjc31aaf2yarcl3ywilx.png" alt="questions" width="770" height="737"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Deploy your database. Next, leave the default settings, this is if you are using a free account.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--AQQAq-8v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kikzqk4hfxq1tf2d5nsk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--AQQAq-8v--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kikzqk4hfxq1tf2d5nsk.png" alt="Settings" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can change the cluster name if you wish.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Tf-0IKur--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bghwnt6y4ls8atxw1c3s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Tf-0IKur--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bghwnt6y4ls8atxw1c3s.png" alt="Cluster Name" width="800" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Once inside, wait for the cluster to finish configuring, and then click on create user&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--plJEP9yI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kdom2487k45xx7ztc86v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--plJEP9yI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kdom2487k45xx7ztc86v.png" alt="Cluster Finish" width="800" height="565"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Connect from local environment.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ROJXU4nu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jk8x0jcbcb0joodge6t7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ROJXU4nu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jk8x0jcbcb0joodge6t7.png" alt="environment" width="766" height="636"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Now you can finish by clicking on the finish button.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--oFPr_Vjf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eijiwta3r7gnrdzf2rw5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--oFPr_Vjf--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eijiwta3r7gnrdzf2rw5.png" alt="COngratulation" width="540" height="193"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Now go to the database section and you can manage your databases.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iHJTtT6t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0m1oopctu2tt1y65740e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iHJTtT6t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0m1oopctu2tt1y65740e.png" alt="DataBase" width="800" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Press the connect button and it will show you the different types of connection.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--n2mq4jZw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29wqrausfb5wmugucy5c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--n2mq4jZw--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/29wqrausfb5wmugucy5c.png" alt="Connection" width="674" height="729"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You can use whatever you need, in my case I am going to use visual studio. This will generate the connection string for me.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--3kfpjM3n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q47oiuwndvdeovrveuxc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--3kfpjM3n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q47oiuwndvdeovrveuxc.png" alt="connectionString" width="670" height="745"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Now just copy the connection string to your project and you can connect to the database.&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>node</category>
    </item>
    <item>
      <title>How to install Postman on Arch-based Linux Distributions(Arch Linux) ?</title>
      <dc:creator>Ulloa Silva</dc:creator>
      <pubDate>Sat, 06 Jan 2024 19:15:50 +0000</pubDate>
      <link>https://forem.com/craftxdog/how-to-install-postman-on-arch-based-linux-distributionsarch-linux--2m0p</link>
      <guid>https://forem.com/craftxdog/how-to-install-postman-on-arch-based-linux-distributionsarch-linux--2m0p</guid>
      <description>&lt;p&gt;&lt;strong&gt;Postman&lt;/strong&gt; is an HTTP client used to build, test, and modify APIs. It provides a graphical user interface through which developers can generate various types of HTTP requests like GET, POST, PUT, PATCH, and DELETE. It is used by more than 20 million developers across the globe to develop RESTful APIs. Among the operating systems supported by the app are Windows, macOS, and Linux. Today, we will discuss how to install Postman on Arch-based Linux distributions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--8ufzFy2t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1b8r0w3sggexx9s7smwg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--8ufzFy2t--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1b8r0w3sggexx9s7smwg.png" alt="Postman article" width="800" height="374"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Installing Postman
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Step 1:&lt;/strong&gt; Update and upgrade our system by executing:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ sudo pacman -Syu&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Jc5HzdeH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9iuks714yhycaaewadb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Jc5HzdeH--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d9iuks714yhycaaewadb.png" alt="Up to date the system" width="800" height="229"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--6RMIo3VJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjhu3zqdghvghybj3fb1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--6RMIo3VJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gjhu3zqdghvghybj3fb1.png" alt="Up to date the system" width="800" height="321"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Download the latest available package for Linux by visiting.&lt;br&gt;
&lt;a href="https://www.postman.com/downloads/"&gt;Download Postman&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ejHoCWFh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkjciz33g6k4ysvhpmi0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ejHoCWFh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wkjciz33g6k4ysvhpmi0.png" alt="Download Postman" width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Click in Linux(x64)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Move into our browser’s default download directory.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ cd ~/Downloads&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--e9NW5tWv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6xslu4uohx2146i558ec.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--e9NW5tWv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6xslu4uohx2146i558ec.png" alt="browser's default download" width="800" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4:&lt;/strong&gt; Unzip the postman tar file.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ tar -xzf postman-linux-x64.tar.gz&lt;/code&gt;&lt;br&gt;
&lt;code&gt;$ find -type f | grep Post&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--1V4OIzBi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1e7pq2dlngovgcr0bui9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--1V4OIzBi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1e7pq2dlngovgcr0bui9.png" alt="Unzip file" width="800" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5:&lt;/strong&gt; Relocate the extracted folder into the /opt directory.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ sudo mv Postman /opt&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s---aM-mBE7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9q8dveodj50qr1htorzr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s---aM-mBE7--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9q8dveodj50qr1htorzr.png" alt="Relocate folder" width="800" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6:&lt;/strong&gt; Create a symlink to launch Postman from the shell.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ sudo ln -s /opt/Postman/Postman /usr/local/bin/postman&lt;/code&gt;&lt;br&gt;
&lt;code&gt;$ ll /usr/local/bin/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--repQ0DqS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/96c73ummxlfcycy4vwjf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--repQ0DqS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/96c73ummxlfcycy4vwjf.png" alt="Creating a symlink" width="800" height="240"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7:&lt;/strong&gt; Now create a new .desktop file to start them by clicking on a launcher icon.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;$ sudo lvim /usr/share/applications/postman.desktop&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lcQBNhNL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hcwrddftyyvhrz3p18z4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lcQBNhNL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hcwrddftyyvhrz3p18z4.png" alt="Desktop File" width="679" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8:&lt;/strong&gt; Copy and paste the following.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;[Desktop Entry]&lt;br&gt;
Type=Application&lt;br&gt;
Name=Postman&lt;br&gt;
Icon=/opt/Postman/app/resources/app/assets/icon.png&lt;br&gt;
Exec=”/opt/Postman/Postman”&lt;br&gt;
Comment=Postman Desktop App&lt;br&gt;
Categories=Development;Code;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iFKmGxjG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m8cv75d0xp9cav9j0r0c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iFKmGxjG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m8cv75d0xp9cav9j0r0c.png" alt="Coping the code" width="800" height="564"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Step 9:&lt;/em&gt; Search “Postman” in the application manager to launch the application.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Bj6zzqfE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tdkz2z19knlaytxttrlq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Bj6zzqfE--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tdkz2z19knlaytxttrlq.png" alt="Searching Postman app" width="352" height="232"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--V7UPtF50--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v47q6e3b756llla8xoe5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--V7UPtF50--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v47q6e3b756llla8xoe5.png" alt="Start the app" width="800" height="435"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 10:&lt;/strong&gt; Now sign up/into our Postman account by entering our credentials.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--mB8bwMsA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szizp2zkw8ly8sykebym.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--mB8bwMsA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szizp2zkw8ly8sykebym.png" alt="SignIn or SignUp" width="711" height="703"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9rWCsNMx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/myw5ugbpugdinxihdcfu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9rWCsNMx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/myw5ugbpugdinxihdcfu.png" alt="Into the app" width="800" height="434"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I hope it has been of great help.&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
