This is a solution to the Interactive comments section challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Create, Read, Update, and Delete comments and replies
- Upvote and downvote comments
- Bonus: If you're building a purely front-end project, use
localStorage
to save the current state in the browser that persists when the browser is refreshed. - Bonus: Instead of using the
createdAt
strings from thedata.json
file, try using timestamps and dynamically track the time since the comment or reply was posted.
- Bonus: Add header with user's name, avatar (hardcoded image for now), and logout button
- Bonus: Add login/register page with form validation
- Bonus: Make the app fullstack by adding a backend with Next.js API routes and MongoDB
- Bonus: Show error message on modal
- Bonus: Show loaders when fetching data
- Solution URL: https://github.com/coderSuresh/fullstack-comment-section
- Live Site URL: https://fullstack-comment.vercel.app/
- Next.js - React framework
- Tailwind CSS - For styles
- TypeScript - For type checking
- MongoDB - Database
I learned how to use Next.js API routes to create a REST API. I also learned how to use MongoDB with Next.js.
I want to continue learning how to use Next.js API routes and MongoDB. I also want to learn how to use Next.js with GraphQL / Express.
- Frontend Mentor - @codersuresh
- Linkedin - @codersuresh