Building the collections
Strapi uses collections to denote resources; for example, if your application is a news application and you want to create a backend that will process posts, comments, and so on, you will create it as a Posts, Comments collection in Strapi.
However, since we are building a Pinterest clone, we will create the following collections: Photo(Pin), Board, and User, and each of these collections will contain their respective fields, as demonstrated in the following steps.
To demonstrate, we will create a simple Photo(Pin) collection that will store the details of a specific photo in our app. In Pinterest, it is called PIN, but we will prefer to call it as PHOTO since we started with that in the previous chapters.
Now to store the details of our photo, we will create a new Collection Type called photos
in the Strapi dashboard.
The photos
collection will have the following fields: title, url, user_id, and description. These fields are imaginative and can...