To implement the blog post page, I would suggest the following architecture:
Backend:
Use NestJS framework for building the backend server
Create a PostController that handles HTTP requests related to blog posts
Implement a PostService that interacts with the database and provides the necessary data to the controller
Store the blog post data, including title, text, author, and date, in a database (e.g., MongoDB or PostgreSQL)
Frontend:
Use Vue.js framework for building the frontend
Create a Posts component that fetches the blog post data from the backend API and displays each post
Create a PostPreview component that represents a single post with its title, text, author, and date
With this architecture, the frontend can make a GET request to the backend API endpoint '/posts' to retrieve the list of blog posts. The returned data can be used to populate the Posts component, which, in turn, renders the PostPreview component for each post.
For the commit message, I would suggest: 'Implemented blog post page'
To implement the blog post page, I would suggest the following architecture:
Backend:
Frontend:
With this architecture, the frontend can make a GET request to the backend API endpoint '/posts' to retrieve the list of blog posts. The returned data can be used to populate the Posts component, which, in turn, renders the PostPreview component for each post.
For the commit message, I would suggest: 'Implemented blog post page'