/rest-app

a tutorial for MSc of Web Technology

Primary LanguageJavaScriptMIT LicenseMIT

rest-app

a tutorial for MSc of Web Technology

Install

npm install

MySQL database setup

  1. create a database in your local MySQL and the replace the db name in the config.js under config folder.

RESTful API

  1. http.get /questions : get a list of questions
  2. http.post /questions with parameters: title: 'question title' and content:'question content'.