The posting feature in MERN Social will allow users to share content on the MERN Social application platform and also interact with each other over the content by commenting on or liking a post:
![](https://static.packt-cdn.com/products/9781788835534/graphics/assets/fcf7142d-c1e5-42a2-9201-6718b4ac6735.png)
The posting feature in MERN Social will allow users to share content on the MERN Social application platform and also interact with each other over the content by commenting on or liking a post:
To store each post, we will first define the Mongoose Schema in server/models/post.model.js. The Post schema will store a post's text content, a photo, a reference to the user who posted, time of creation, likes on the post from users, and comments on the post by users:
text: {
type: String,
required: 'Name is required'
}