How-to deploy your Node.js app on anynines
I wrote a small Node.js app to test deploying with Node.js and MongoDB on anynines. The application enables visitors to browse quotes and add their own to the database (what could possibly go wrong?). It’s not likely it will ever win a startup competition, but it IS a neat way to demonstrate deploying a JavaScipt app* on anynines.
You can find the example application at nodejs_mongodb_example.de.a9sapp.eu.
Getting started with Node.js
Make sure you have Node.js installed and MongoDB setup on your developer machine. Let’s verify your Node.js installation and start the MongoDB server:
$ node -v
$ mongod
Clone the repository to take a look at the application and run it locally:
$ git clone git@github.com:anynines/nodejs_mongodb_example.git
$ cd nodejs_mongodb_example
$ node app.js
Visit https://localhost:3000 in your browser to see the application in full glory. (more…)