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

Laurie Gray
Laurie Gray
23,119 Points

How do you actually host and deploy a very simple Node.js website using Express?

So I understand Node.js and Express.js to a decent level and can host a basic website locally on my machine using Jade after following the courses here. What's not immediately clear is how do you actually use this and deploy a basic website (the same website I have for example) on a server somewhere?

Thanks! :)

1 Answer

Karolin Rafalski
Karolin Rafalski
11,368 Points

I have deployed a couple node/express/postgres apps through heroku and one Rails/postgres app. They have pretty good tutorials and walkthroughs. They also offer free basic hosting if your project is small. Another nice thing is that heroku works really well with git so you can update your heroku site using git really easily.

Another possibility that a bunch of people I know really like is Digital Ocean. Although, Digital Ocean involves more configuration, which depending on your needs, may be more what you are looking for.

Laurie Gray
Laurie Gray
23,119 Points

Thanks Karolin - will do that shortly :D