This post is one of a series on local-first development with CAP Node.js. Calesi and mocking remote services In the context of CAP-Level Service Integration (aka "Calesi") we can mash up remote and local services, and in the full spirit of CAP generally, run everything in airplane mode, i.e. fully locally. Working through an example In this post, we'll work through an example of mocking a remote service, based on content in the remoteservice/ directory of the repo set up for the related talk. We start with an almost empty project directory, save for a basic package.json file which we only really have at this point so we can check the changes in it that are introduced when we import a remote service API definition. All operations are done in the context of this project directory. The other files in this directory in the repo are related to performing and resetting the demo during the talk version of this post. Examining and importing the candidate remote service At…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.