Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 850 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 850 Bytes

CRUD Bear (array storage)

Demo Restful API with NodeJS and Angular HTTP / Resource controller

Bear Restful Example

  • restfulBearAPI (Manipulate FormUrlEncoded)
  • restfulBearJSON (Manipulate JSON with bear*.html)

All 2 files are the same except restfulBearAPI is for API testing with PostMan and restfulBearAngular is manipulate the JSON ( Extract: res.json(bears); ) with 2 html example files:

  • /public/bearHttp.html (Angular http get/post)

  • /public/bearResource.html (Anugular Resource controller)

Installation

$ git clone https://github.com/wwarodom/csw.git 
$ cd csw  
$ npm init  
$ npm install express body-parser --save  
$ node restfulBearJSON.js 

Open Web Browser:

Go to: http://localhost/