Putting It All Together
Now that we’ve reviewed all the individual parts of the DARRT framework (data, actions, resources, representations, and transitions) and seen how it’s put together, we can run some simple queries against our instance of the onboardingAPI to see how it behaves. To do that, we need to start up our local instance of the onboardingAPI and then use curl to execute some simple tests.
First, to start the local instance of the onboadingAPI, open a command window, move to the /building/all-together/ folder in the source code download associated with this chapter, and run the following command:
| | npm run dev |
This command will fire up the onboardingAPI service and wait for requests. Note that this command assumes you already have ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access