Deploying simple restify node.js application with mongodb backend on AWS and lessons learned

Today and yesterday I have been working on deploying a simple rest api written in node with a Twitter Streaming API connection saving tweets to a mongodb and enabling a search in the tweets with averages on a number in the result json.

First I tried running it on OpenShift on the free service but I couldn’t get it running.

Then I tried setting it up in AWS Linux but it was easier to do in Ubuntu 16.10 following these guides:

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

https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04

I then set up a Security Group in the EC2 control panel of AWS allowing incoming connections to port 8080, which is the port my script is running on.

Still I am unemployed but I hope someone finds interest in my work and soon my Smileyhash application is ready and hopefully some company will be interested.

Leave a Reply

Your email address will not be published. Required fields are marked *