DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 966,155 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Kenny Whyte
Kenny Whyte

Posted on

Is there a way to deploy Node app with Netlify?

Quick question.

Is there a way to deploy a Node/express app (with public static files/folders) using Netlify?

Please let me know.

Thanks!

Top comments (12)

Collapse
 
lucis profile image
Lucis • Edited on

Netlify Functions is the way to go!

There you can't actually send your express app, but it provides an interface to achieve the same with cloud functions. Check it out, it might suit you even better.

Collapse
 
kawhyte profile image
Kenny Whyte Author

I saw Netlify functions in my search. I am definitely going to check this out. Thank you.

Collapse
 
tobiassn profile image
Tobias SN

There’s not. Netlify is only for static sites, ie. sites that don’t have a server. Not in the traditional sense, that is. It does support serverless functions, although that’d require a major server-side rewrite.

If you absolutely need a traditional Node app, there are services that let you host one, although they aren’t free.

Collapse
 
kawhyte profile image
Kenny Whyte Author

I like Netlify, so I am going to check out serverless functions. I guess this is the perfect opportunity to learn about this technology. Thanks for the tips.

Collapse
 
vguleaev profile image
Vladislav Guleaev

Nope, but you can use serverless functions. And also can make bested routing inside function.

Collapse
 
kawhyte profile image
Kenny Whyte Author

Thanks. I am going to check out serverless functions today.

Collapse
 
jplindstrom profile image
Johan Lindstrom

Kinda... See this article for how to make it easier to use Express to drive the Netlify serverless functions:

netlify.com/blog/2018/09/13/how-to...

Collapse
 
kawhyte profile image
Kenny Whyte Author

Thanks! I deployed it using Heroku.

Collapse
 
l4znet profile image
Charly Escalona

Hi! Netlify is for static app but, good news! You can use Vercel for JS app, and deploy node app using a trick, check this -> dev.to/hte305/deploy-express-js-ap...

Collapse
 
l4znet profile image
Charly Escalona

I've tried to deploy a Express app on Vercel, and that's work perfectly!

Collapse
 
joyalgs profile image
Joyalgs

Does anyone deployed express app in netlify. I tried with serverless-http but it was throwing handler undefined error.

Classic DEV Post from 2020:

js visualized

πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! πŸ₯³

Happy coding!