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
README.md
StrongLoop-LICENSE
WORKSHOP.md
app-setup.js
app.js
npm-shrinkwrap.json
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

    node app
    
  3. Access the server using the following URLs

http://localhost:3000

http://localhost:3000/rest/users

http://localhost:3000/rest/blogs

  1. 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.