Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Building marketing website on Express and Node.js. Worth it?

Hello,

I am planning to build a simple marketing website for my agency. A landing page, services, contacts pages and business blog. I've read that Node apps are really fast and there are good hosting options (e.g. DigitalOcean with their SSD cloud server). Does it worth to build this kind of website with the Express.js in terms of speed and performance?

1 Answer

That depends on your needs. Node.js is great for web applications, that's true, but you have to ask yourself if it is worth to implement the backend. It sounds like your website only contains a few HTML pages (except for the blog part), and in this case I would stick with a simple HTML solution without a backend.

However, if you plan to implement a login, contact form and other stuff (generally speaking a more complex web application), go ahead and use Node.js. Have a look at Ghost, which is a beautiful and free blogging system based on Express and Node.js. As far as I know, you are also able to manage static pages.

In terms of speed there's nothing wrong with Node.js, it is blazing fast and highly scalable, even for big enterprise solutions.