DEV Community

ADEKOLA Abdwahab
ADEKOLA Abdwahab

Posted on • Edited on

1

How to host node js for free with custom domain and (free) SSL

PROBLEM STATEMENT:

Inability to host node js applications free of charge and use a custom domain with SSL enabled.

I have implemented this, and my site is running fine.

SOLUTION:

  1. Make your nodejs app to be an API with endpoints that you can call from somewhere else. This is your backend.

  2. Make your frontend call your nodejs backend.

  3. Host your backend on Render.com . You will get a secured (SSL enable) url.

  4. Host your frontend on Netlify. You will get a secured (SSL enabled) url like: myfrontend.netlify.app

  5. Register your custom domain on on your myfrontend.netlify.com app, this comes with SSL enabling as specified by Netlify DOCS:

image

So your app could now be accessed via: https://myCustomDomain.com

Try this and let me know how it goes.

E se pupo

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay