Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Sample blog application written in Node.js
JavaScript CSS

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
db
models
public
routes
test
views
.gitignore
.jshintrc
README.md
StrongLoop-LICENSE
WORKSHOP.md
app-setup.js
app.js
package.json

README.md

A sample blog application built with Node.js

How to run the server?

  1. Start a local mongodb instance

    mongod --dbpath=mongodb-2.2-demo/ &
    
  2. Run the server as a single instance:

    slc run .
    
  3. Run the server in 'clustered mode', with an instance per CPU

    slc run . --size=cpus
    
  4. Access the server using the following URLs

  5. Sample user credentials, if prompted for authorization, use :

    • user: strongloop
    • password: password

Customize the configurations

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
      }
    }
Something went wrong with that request. Please try again.