3 days ago · Tech · 0 comments

This post is one of a series on local-first development with CAP Node.js. Initial, test and sample data - terminology Mocking data is likely the most common and useful of the various local-first development mechanisms that provide mock facilities. Before we start digging in, it's worth spending a minute on terminology used in the CAP development ecosphere in general and in Capire in particular. There are three terms widely used in the context of mocking data: "initial", "test" and "sample". Initial data This is real data that is intended for use beyond development. In other words, it's data that will be deployed not only in development but also in production scenarios. Conventionally, initial data is placed in a data/ directory within the db/ directory. Test data This is data for development and testing only. It is data that is not intended for production. Conventionally, test data is placed in a data/ directory within a test/ directory in the project, and will not be deployed in…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.