Putting my node.js app online
Asked Answered
H

3

5

So, the last two months I've been developing a Node.js app for a course in school, and on Monday it needs to be online so that my teachers can have a look at it.

How can I do this? I could really need some help here.

Thanks in advance!

Note: I'm using Mongodb for my database.

Herefordshire answered 2/6, 2012 at 9:6 Comment(1)
possible duplicate of Where can I host a Node.js app?Kazoo
B
4

Do you have an always-on internet connection (e.g. DSL/cable) and are behind a router? Then you can NAT the ports your node.js app is listening on to your computer, make sure to check windows firewall as well.

Now your app is online on your private computer!

Butyraldehyde answered 2/6, 2012 at 9:12 Comment(2)
Ah, this could work, but doesn't it need me to have a static ip?Herefordshire
nope, you can use your plain old dynamic ip or use dynamic DNS.Tempting
D
4

I've found Heroku is easy and free to host a node.js app with MongoDB.

Dikmen answered 2/6, 2012 at 10:22 Comment(4)
Is it easy to set up? I have a lot of files (+2000) including a bunch of installed modules.Herefordshire
Yes, you add the files with git, and the modules you declare in a file called "procfile". The details are here.Dikmen
@holyredbeard, just follow the guide.Brote
you have to provide your cc details for mongoDBZestful
P
3

openshift gives better free package. Deployment is easy as on heroku. I'm using it now for developing one app in mean.js style and I'm very happy with it.

Paisano answered 3/1, 2015 at 0:19 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.