Hey everyone, welcome to my talk, Content Modeling 101. I will discuss the importance of content modeling and how it helps organize content for the entire team. Let's dive into modeling a content for an app, specifically a recipe app. I learned about the top-down approach, which simplifies the content model and makes it more reusable. I created a JSON schema for the recipe content model, including title, description, ingredients, instructions, and images.
Hey everyone, and welcome to my talk, Content Modeling 101. Now, my name is Harsh Lagrawal, and I am originally from India, living in Berlin for 15 months now, and I work as a developer advocate at Contentful. And one of the fun parts I love about my job is that I get to experiment a lot with different technologies and framework, and share this learning with the wider community. So you can find about all these experiments and crazy stuff that I do on my website, or feel free to follow me on Twitter. Also, this is my first time in Amsterdam, so if you have any recommendations, please do let me know.
So today, I am going to talk about content, because in the past two years the amount of content that we have generated has been massive. I mean, almost everyone out there has been involved in creating content in some form or the other. And last year in November itself, during the Black Friday sale, we saw a massive amount of incoming requests being made to our Contentful APIs. The GraphQL API request increased by 550%, and the Content Delivery API, or the CDA, increased by 73%. And that was just in one month. And so I feel, as a developer, it is our duty to make sure that we are creating an amazing experience not just for our end users, but for our team as well. And that is where content modeling comes into the picture. But the question is, what is content modeling? So a content model basically gives structure and it helps you to organize your content. Now keep in mind, that not all content creators and designers have that technical expertise like us. Hence, the goal over here is to create a content model that will support the needs of the entire team, from content creators, designers, to developers.
Enough of the theory, let's try to get into action and try to model a content for an app. And this is an app that I am working on and I want to create for myself, because I have taken cooking as a hobby recently and I want to try out to build an app that I can store all my recipes and maybe share it with everyone else. And I want to build this because I am a programmer and I have the superpower to do that. But anyways, there are a few things that I learned when I was researching for this and I started working on it, and in the next couple of slides I will be talking about that. And one of the major things that I learned was about the top-down approach, because it helped me break down my content model and I was able to simplify the content model and make it more reusable. So I started playing around with the JSON schema and I created this JSON schema. So I have a content model which has a recipe which contains the title, a description, ingredients. Now if you see ingredients is an array and I'm going to come back to that. And then there are instructions and then the images. Once I had the JSON schema and I kind of had the visual representation of what I wanted to do, I simply translated it into the content model in Contentful and you can already see all this in Contentful. Now if you see or focus on the ingredients it says references, many. So what I went ahead and did was I created a different content type for ingredients. So if you go one layer deep this is what the ingredient JSON type JSON schema looks like. The ingredient has a name and it has a type. Now I am vegetarian.
Comments