Appendix B SAmple Code Swagger-Server Continue with the following steps: Step 7: Run “npm start” inside the unzipped folder. It will download the dependency and the server will start at port number 8080, or check the logs of command “npm start” as shown in Figure B-7. http://localhost:8080/docs Figure B-7. API server Step 8: Click default; you can access account and transaction services. You can access the services at the following locations using REST Client, as these are POST method requests. • Account: http://localhost:8080/account • Transaction: http://localhost:8080/transaction UI Screen Mocking on Node-RED You can use Node-RED for modeling your application using APIs and UI screens. Node- RED is a programming tool for wiring together hardware devices, APIs, web services, and quickly making a model to visualize the data flow and UI screens. It provides a browser- based editor that makes it easy to wire together flows using the wide range of nodes in the palette, which can be deployed to its runtime in a single-click. You access Node-RED documentation from the following URLs: 342

Building Digital Experience Platforms - Page 352 Building Digital Experience Platforms Page 351 Page 353