MBaaS Service for the sync-angular-client that runs fh-rest-express-router to expose a RESTful API, and fh-rest-memory-adapter to store items in memory.
Assuming you have node.js and npm installed, you can run this locally like so:
cd sync-angular-cloud
npm install
npm start
Try hitting the running app with cURL or Postman with these requests:
- GET http://localhost:9001/users/ - Should return an empty Object (at first)
- POST http://localhost:9001/users/ - Include a JSON body (be sure to set the content-type to "application/json") with "firstname" and "lastname" keys to create a new user (stored in node.js memory)
- PUT http://localhost:9001/users/1 - Update the user you created. Same payload format as POST
- GET http://localhost:9001/users/ - Should return an Object with any users now created
- DELETE http://localhost:9001/users/1 - Delete the user you first created.