This is a Next.js project bootstrapped with create-next-app
.
https://blog-test-task-i9mwiue6r-ruslan-amirovs-projects.vercel.app/posts
First, run the development server:
npm i
npm run dev
Open http:https://localhost:3000 with your browser to see the result.
- I used Strapi as a backend for this project.
- I used Tailwindcss for the styling.
- I decided use fetch api to get data from Strapi because it's very qucik way to get data from backend.
- I prefer to generate types/api methods by swagger/graphql schema, but I am not happy with result of this generation. I don't have to improve it.
- I saw a button to add new comment, but it's impossible to do on Strappi backend in good way.
- API with pagination doesn't work for this case. I decided to not implement this feature.