Simple Angular 8 App
Using Angular/CLI
The code for this project is available on Github.
For a live demo, check Stackblitz.
We’re going to create a simple app for products management.
We will start by creating our application and 3 components using the angular/cli with these commands :
ng new products-management --routing
cd products-managemen/src/app
ng g c product-add
ng g c product-get
ng g c product-edit
and a products service for the HTTP calls :
ng g s products
g : generate, c : component, m : module, s : service
Then, we add their definitions files:
- product-add : to add a new product
2. product-get : to display the list of the products
3. product-edit : to update a product
along with a product model
and a single service for all the HTTP calls
Next, we define the routing module for the Home module :
Wohoo ! Now we have an angular application and a microservice waiting for calls ! 😁
Link this application with a Grizzly Microservice
Read this article to implement a codeless Microservice for this application using Grizzly-API.