Deploy your node.js application for free to Render
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.
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.
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).
Then you can click on the New button and select Web Services from the dropdown.
Then you will navigate to a page like this.
Then you should scroll all the way to bottom and you can see this.
To this you must add you project’s URL from the GitHub. (The repository must be a public one.)
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.
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.
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.
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.
Cheers,
Happy Coding ….