Skip to content

bwestmoreland/sample-blog

Repository files navigation

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/ &
  1. Run the server
node app
  1. 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
  }
}

About

Sample blog application written in Node.js

Resources

Stars

Watchers

Forks

Packages

No packages published