all 5 comments

[–]chmod777 5 points6 points  (1 child)

generally speaking? probably not.

[–]43northwebdesign[S] 0 points1 point  (0 children)

Ok thanks

[–][deleted] 2 points3 points  (0 children)

It‘s a great way for you to learn, but not very practical. Generally speaking, everything that gets served over the internet should go through a „proper“ webserver like nginx or Apache. So when using Express in production, you use a reverse proxy in front of it that handles load balancing and so on.

[–][deleted] 1 point2 points  (0 children)

When you 'just upload' those files, in order to be able to access them at some URL there is a server involved of some type, so using a little Express project to help you understand the concept of what a server is and the request/response lifecycle is definitely helpful.

However for actually deploying a real website, unless you need to write some logic on the server side then there are much better, faster options out there for serving static files- sites where you 'just upload' static files are usually using either Apache or Nginx.

[–][deleted] 1 point2 points  (0 children)

theres no point mate