Deploying Node Application using Render
Tags: node, javascript, beginners
Published: 2023-03-23 18:23:16

####Are you ready to take your Node.js application to the next level 🚀? 

If you're looking for a hassle-free simple step by step way to deploy your app and get it up and running in minutes, then you're in luck!

In this post, we're going to explore how to deploy a Node.js application using Render, a powerful cloud platform that makes deployment fast, easy, and reliable. 

Whether you're a seasoned developer or just starting out, you'll find everything you need to know to get your application up and running in no time. 

In this post we learn how to deploy a simple login Node application using the render.

**Let's deploy the below sample Login Application to render.**

Github Repository URL :

[https://github.com/phanimurari/dev-post-sample-login-app.git](https://github.com/phanimurari/dev-post-sample-login-app.git)

I highly recommend trying out the above GitHub repository and getting hands-on experience by deploying a sample login application locally.

**Let's jump into deploying part**

**Step1:** 

Create a Account on [Render](https://render.com/)

It is highly recommended to register on Render using your GitHub account as it enables seamless integration of your project repositories on GitHub with the Render services. 

This will streamline the process of deploying and managing your applications on Render, allowing for a more efficient and convenient workflow.

**Step2:**

Click on **New+** and select **Web Service** 

Refer to the below screenshot for a better understanding.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ffie92cnck6jv3xr6rvb.png) 

**Step3:**

Let's create your project repository by clicking on the **connect** button.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzxmr8of0oay0d40qbsi.png)

**Step 4:**

- Give a unique name for deployed node application

- Select your **Region**

- Select the branch where your code exists in the GitHub repository.

- Select **Run Time** as **Node**(As your deploying the Node application)

- Select **Build Command** that build your Node application, In my case it is installing the Node Modules.

Execute the below command to install the Node Modules.

```
npm install
```

- Select **Start Command** that start your node application.

In my case executing the below command will start my node application.

```
nodemon index.js
```

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xhcnxobu3w0thqu3v0yo.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hi8rm1fqcc5l9tq3nl9e.png)

- Click on the **Create Web Service** button to create the web service.

**Step 5** 

You simply wait for some time, till your deployed node application is built and deployed succesfully.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/27g709nakv493fy7jh6u.png)

If any error during the build or depolying, you can check out those errors in the **Logs** as shown in the reference Screenshot.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8d0rhbliz7u7195yxga2.png)


**Step 6**

Testing the deployed Node Application APIs

**Register API**


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sm2fw2t2ig9ja47obu61.png)

**Login API**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tki36o85btr12lt8waze.png)

I love to appreciate your enthusiasm to learn more.

Thanks for Reading!

##### I'm Phani Murari

[Instagram](https://www.instagram.com/im_phani_murari/)
[LinkedIn](https://www.linkedin.com/in/phanimurari/)