From the course: Twilio Essentials Unit 3: All Together Now

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Private data

Private data

- We're at that part of project creation, where we need to have access to some mock data that doesn't yet exist. We need to find what talks are happening, but we don't have those stored anywhere. Heck, we don't even have the data model built yet. I can see that those eventually will live in a database, and maybe we expose a REST API later, but now, we don't really even know what it feels like. I find that during prototype development, it's best to create a module that returns mock data that feels similar to how we anticipate things to behave in the future. I abstract away the unknowns, and then I use what I create as a specification for the yet to be created API. And there's probably a programming term for this, but I call it a hack job. In this serverless world, I typically do that by creating a module and I host it using a private asset. This will be a good example of a common question about functions. How do I…

Contents