A simple RESTful API with ExpressJS on NodeJS to provide a very simple message board functionality.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
.gitignore
LICENSE
Procfile
README.md
package.json
web.js Adding simple front-end. Dec 25, 2013

README.md

expressjs-messageboard

Live Demo

http://expressjs-messageboard.herokuapp.com/

Description

Creates a simple message board API using ExpressJS.

How to run locally

npm install
node .

Example usage of API

Get all messages:

curl -X GET http://expressjs-messageboard.herokuapp.com/messages

Get a single message:

curl -X GET http://expressjs-messageboard.herokuapp.com/messages/0

Add message:

curl -X POST -H 'Content-Type: application/json' -d '{ "text": "Test 1" }' http://expressjs-messageboard.herokuapp.com/messages

Modify a message:

curl -X PUT -H 'Content-Type: application/json' -d '{ "text": "Updated message" }' http://expressjs-messageboard.herokuapp.com/messages/3