Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

In-browser markdown editor Next.js, TS, Redux

P

@evengene

Desktop design screenshot for the In-browser markdown editor coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
3intermediate
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

  1. In this project I used MongoDb Atlas for the first time so that the docs could be stored there. I had to learn how to use it and how to connect it to my project.
  2. I also used Vercel Functions to create a serverless api to handle the requests to the database (/save, /delete, etc.) This was also a first for me.
  3. I created an architecture for the project that is easy to understand and navigate. I have a separate folder for the components, hooks and utils functions.
  4. I'm using createSlice from Redux Toolkit to manage the state of the app. It is better because it is more concise and easier to understand than the traditional Redux.

Since this app is more for learning purposes, I have added a limit of 5 notes that can be created. Potentially in the future I could add a login system and a way to save more notes for particular users.

What challenges did you encounter, and how did you overcome them?

Challenges and how to overcome them:

  1. The first challenge was to find a way how to save docs. I could use a local storage but I wanted to work with a database. I found MongoDb Atlas to be very popular.
  2. The second challenge was to create a serverless api to handle the requests to the database. I used Vercel Functions for this.
  3. Other challenges include creating more elegant way to handle styles changes for the theme switcher and to make the app more responsive since the layout is different on desktop/mobile.

I see a potentially ways to refactor the project more and will be updating it as the time goes.

What specific areas of your project would you like help with?

  1. What do you like about the project?
  2. What can be done better?

Community feedback

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord