This is a Lizard (Eidechse) |
This project shows ...
- how to make HTTP calls to a remote server's web API
- how to add, edit or delete users
- how to save that changes back to the server
- how to use Angular 2 In-Memory-Web-API to emulate the web server
- how to implement the data management in the express web-server
Open Angular 2 Tutorial HTTP and work through.
Comment out the line InMemoryWebApiModule.forRoot(InMemoryDataService),
in file app.module.ts to disable Angular 2 In-Memory-Web-API and
to use the data mangement in the express web server instead (see file server.js)
This tutorial uses Netbeans, Gulp.js, Node.js, Express Web-Server.
Follow these links to find some more information for
Netbeans IDE,
Gulp.js,
Node.js,
Express Web-Server,
Angular 2 and
TypeScript.
To do (on Linux OS) ...
- open shell and clone git repository
git clone <repository-url>
- change working directory to project and install node modules
cd <project-dir>/lizard
npm install
- build the project and start the server
npm start
- start a web-client and test the server
http://localhost:8080