Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rework README markdown, it was invalid or weird

  • Loading branch information...
commit 4490c34653551536d1a115bbaf589c144fde916f 1 parent e65210e
Sam Roberts sam-github authored
Showing with 30 additions and 34 deletions.
  1. +30 −34 README.md
64 README.md
View
@@ -2,49 +2,45 @@ A sample blog application built with Node.js
============================================
How to run the server?
-======================
+----------------------
1. Start a local mongodb instance
-<pre>
-mongod --dbpath=mongodb-2.2-demo/ &
-</pre>
-2. Run the server
-<pre>
-node app
-</pre>
+ mongod --dbpath=mongodb-2.2-demo/ &
-3. Access the server using the following URLs
+2. Run the server as a single instance:
-<http://localhost:3000>
+ slc run .
-<http://localhost:3000/rest/users>
+3. Run the server in 'clustered mode', with an instance per CPU
-<http://localhost:3000/rest/blogs>
+ slc run . --size=cpus
-4. Sample user credentials
+4. Access the server using the following URLs
-If prompted for authorization, use :
+ - <http://localhost:3000>
+ - <http://localhost:3000/rest/users>
+ - <http://localhost:3000/rest/blogs>
-<pre>
- user: strongloop
- password: password
-</pre>
+5. Sample user credentials, if prompted for authorization, use :
+
+ - user: strongloop
+ - password: password
Customize the configurations
-============================
-
-## Configure the MongoDB connection
-Update config/config.js
-<pre>
-exports.creds = {
- mongo: {
- 'hostname': 'localhost', // Host name
- 'port': 27017, // Port number
- 'username': '',
- 'password': '',
- 'name': '',
- 'db': 'sample-blog_development' // DB name
- }
-}
-</pre>
+----------------------------
+
+### Configure the MongoDB connection
+
+Update config/config.js:
+
+ exports.creds = {
+ mongo: {
+ 'hostname': 'localhost', // Host name
+ 'port': 27017, // Port number
+ 'username': '',
+ 'password': '',
+ 'name': '',
+ 'db': 'sample-blog_development' // DB name
+ }
+ }
Please sign in to comment.
Something went wrong with that request. Please try again.