All Projects → kenberkeley → Msg Board Api

kenberkeley / Msg Board Api

A Simple Message Board / 简易留言板 RESTful API

Programming Languages

javascript
184084 projects - #8 most used programming language

A Simple Message Board RESTful API

build status Dependency Status Coverage Status

中文介绍点击 这里

Features

More Detail in package.json


Requirements

  • Node ≥ 4
  • NPM ≥ 3

Getting Start

$ git clone https://github.com/kenberkeley/msg-board-api.git
$ cd msg-board-api
$ npm install
$ npm start

> [email protected] start /Users/kenberkeley/Documents/Desktop/msg-board-api
> node bin/start.js
[AutoMount] delete /msg/:msgId
[AutoMount] put /msg/:msgId
[AutoMount] get /msg/:msgId
[AutoMount] get /logout
[AutoMount] post /login
[AutoMount] get /user/
[AutoMount] post /msg/
[AutoMount] get /msg/
[INFO] Msg board RESTful API listening at localhost:8989

APIs

Showed as above


JSON Format

# A message example:
{
  "id":"4d48e8d0",
  "time":1465291755485,
  "author":"ken",
  "title":"hello world",
  "content":"welcome to msg-board-api"
}

# A session example:
{
  "username": "ken"
}


Testing

Make sure mocha available globally.
If not, npm i mocha -g

$ npm test
...
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].