Demo of REST API by using Node.js
The technologies used:
- Frontend: Angular JS, HTML 5, CSS 5, JavaScript, JQuery, Ajax.
- Backend: Node.js, Express, WS - Web Socket, Sqlite 3 and Oracle database, etc.
The features implemented for the demonstrations:
- REST Full operations: GET, PUT, POST and DELETE
- Web Socket function that send alert message to all online users
- Upload a file to the Node server.
- Download a file from the Node server.
- Using a filter to check all requests from clients
- Using token mechanism to allow authenticated users to access resources
Demo user accounts:
- daveywang@live.com, password: demo
- lwwang@live.com, password: demo
How to run the application?
- go to the folder in which the app.js is.
- run the command: node app.js
- open a browser and enter http://localhost:8081/