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

How to use express JS in the wild

Hey, I just finished the Express basics course. It was great. However everything is on a local server. How do we then take our app and launch it to the world ? I couldnt find much on nodeJS hosting services

2 Answers

Try Heroku. You can install the Heroku CLI and then from your terminal (inside the root of your project) you can run the following to push to your live server.

git push heroku master

Of course there is some setup before you can just run that command but it's all explained. You also have to have Git installed and your project needs to be initialized as a git repository. Or you won't be able to run git commands. It's also just good practice to save your stuff using Git and GitHub anyway.

Digital ocean is quite a good host: https://www.digitalocean.com/

They give you a linux based server, from there you can run node. Their service is well priced and quite popular. They have a tutorial for setting up a node server on one of their servers

https://www.digitalocean.com/community/tags/node-js?type=tutorials - All Node digital ocean tutorials

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-14-04 - On ubuntu

Some of my friends seem to like Digital Ocean too. They're Ruby devs but odds are it's a similar process.

Yeah, as I said it's a linux server so if you can set it up on linux it'll run on D.O.

Thanks guys! I'll have a look into those.