This example built with Angular for a smart fridge is based off the Java interface defined here.
The project is compiled in the /dist
folder.
To install dependencies, run npm install
or yarn install
.
To run the production ready app, use the command node backend/server
. This will startup an express server that hosts the app.
Navigating to http://localhost:4200
will redirect the user to http://localhost:4200/stock/add
.
http://localhost:4200/stock/add
The user can add any type and quantity of item already registered in the fridge.
Another view would be required to register a type with the fridge, i.e. potatoes are not listed so the user would have to register a potato.
http://localhost:4200/stock/remove
The user can remove items by uuid. This of course would need refinement in the real world, but will suffice for this example.