Skip to content

calebmadrigal/expressjs-messageboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple RESTful API with ExpressJS on NodeJS to provide a very simple message board functionality.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors