Skip to content
Browse files

updated readme to work with MongoDB and MongoHQ

  • Loading branch information...
1 parent 583b95a commit 867de4c396eec0855f632366f1a72423e50fd75e @MichaelMartinez MichaelMartinez committed Apr 9, 2012
Showing with 31 additions and 0 deletions.
  1. +31 −0 README.md
View
31 README.md
@@ -14,4 +14,35 @@ railway seed
node server.js
```
+## to get started with MongoDB and MongoHQ
+
+```
+git clone git://github.com/anatoliychakkaev/railway-example-app.git lib-app
+cd lib-app
+npm install -l
+npm install mongodb
+npm install mongoose
+```
+
+Then modify 'database.json' as follows;
+
+```
+{ "development":
+{
+ "driver": "mongoose",
+ "url": "mongodb://<user>:<pass>@<server>.mongohq.com:<port>/<db_name>"
+}, "test":
+ { "driver": "memory"
+ }
+}
+```
+(replace all entires with <abc> ecapsulation)
+MongoHQ provides all the details in regard to connection string.
+
+Now finally run
+```
+node server.js
+```
+
+Nested resources in action!!

0 comments on commit 867de4c

Please sign in to comment.
Something went wrong with that request. Please try again.