Deploy your node.js application for free to Render

Chanuga Tharindu
3 min readJul 23, 2023
Photo by Paul Esch-Laurent on Unsplash

First you must get ready with your node.js application.

After that you should visit the render web site.

You will redirect to a page like this.

render landing page

Then if you already have an account you can sign in by clicking the button on the top navigation bar else you can click get started button and create an account.

render sign in page

In the sign in page they are providing many options. You can select a preferred method and sign in to the system.

Once you sign in you will navigate to a page like this. (This might be little different if you don’t have services already).

dashboard page

Then you can click on the New button and select Web Services from the dropdown.

create a project in render

Then you will navigate to a page like this.

web services page

Then you should scroll all the way to bottom and you can see this.

the place you should add the public GitHub URL

To this you must add you project’s URL from the GitHub. (The repository must be a public one.)

GitHub URL

After adding the URL you should click the continue button. Then it will get connected to your public GitHub repo.

Then you will navigate to this page.

landing page after selecting web service

In here you should provide a name to your web service, select a region from the dropdown, add the branch in the git repo that all your file contains, provide the root directory, Select the runtime, what is the build command and what is the start command.

folder structure

In my case, root directory is dot (.), Environment is Node, build command is npm install and the start command is node app.js.

Then you should select the Free plan from the list and scroll down and hit Create web service button.

filling the form

Then it will start building the project and deploy the project. It will take some time.

Once it start you can see a URL to access the project on the top of the screen.

In case if you have any environment variables, you can go to Environment tab and add those one by one.

environment variable addition

Cheers,

Happy Coding ….

--

--