DEV Community

loading...

How to host for free your NodeJS app

rphilogene profile image Romaric Philogène Updated on ・2 min read

Hosting NodeJS applications is easy, finding a completely free NodeJS hosting service that is reliable is not. In this post, I will show you how you can host your NodeJS app on Qovery - A 100% free hosting platform (no credit card required!!) used by 1500+ developers in 94 countries 🌎.

Note: With Qovery you can deploy your NodeJS app with a PostgreSQL database for free.

Disclaimer: I am the co-founder of Qovery.

We provide Qovery for free because it's our way to give back to the community. Our business model allows us to charge $0 for each instance that you run with no limitations :) So enjoy and share your experience with us 😌

You can read more about Qovery vs. Heroku.

Deploy your NodeJS app

Given you have registered on to Qovery and you are logged into Qovery, follow the steps below:

  • Fork the https://github.com/evoxmusic/nodejs-posgresql repository to your GitHub account
  • Go to Qovery, click the button “Create a new project” button in the middle of Qovery
  • Give a name to your project - in my case "Quotes"
  • Add an application
  • After that, click “I have an application”.
  • Then select "Github" and pick your repository "nodejs-postgresql".

Github select repo

  • Select NodeJS

Select NodeJS

  • Give a name to your app

Give a name to your app

  • Select PostgreSQL

Qovery services

  • Select the version of your DB and give it a friendly name

DB

Deploy and TADA

show envs

Conclusion

Hosting a project with NodeJS should not be a hassle. Qovery got your back and provide everything that you need like free SSL, database, CDN to deploy your NodeJS apps.

Give it a try now and leave me your feedback in the comments👇.

-----------------------------------------
Important Note
-----------------------------------------
If your deployment failed, don't forget to declare your NodeJS app port port: 3000 in your .qovery.yml. Read this doc

Discussion (12)

pic
Editor guide
Collapse
difagume profile image
dIEGO fAbRIciO

hello, maybe some example to deploy a nodejs typescript application?

Collapse
rphilogene profile image
Romaric Philogène Author

Hi Diego, it's exactly the same as deploying a Javascript app. Nothing change. Do you need help?

Collapse
difagume profile image
dIEGO fAbRIciO

Thanks Romaric, I'm going to the discord channel to ask.

Collapse
angelxmoreno profile image
Angel S. Moreno • Edited

For starters, where does one indicate my build process? does Qovery run my build script?

Thread Thread
rphilogene profile image
Romaric Philogène Author

Hi Angel, what do you mean?

Thread Thread
angelxmoreno profile image
Angel S. Moreno

I've been up to date with the docs since i last posted this. All good. All the building happens at the Dockerfile level.

Collapse
cristhos profile image
Br CRISTAL DIBWE

Thank you for ;
I just deployed an app that matches what I'm looking for.
everything is fine; a little slow but everything is fine.
Can you facilitate the configuration of the domain name. Its very important!

Collapse
rphilogene profile image
Romaric Philogène Author

It's in the plan 👌 thank you for your feedback - you can take a look at what we prepare on qovery.com/blog 🔥

Collapse
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Can I log in (SSH tunnel, perhaps) into Postgres instance, and install plugins?

Collapse
rphilogene profile image
Romaric Philogène Author

not yet but soon

Collapse
ricardogouveia3 profile image
Ricardo Gouveia

All my deployments fail. I don't get much of why on the logs... where can I get help?

Collapse
rphilogene profile image
Romaric Philogène Author

Hi Ricardo, you can open a thread here to get support from the community and our team.