Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
- 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.
- 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. - 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.
- 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.
Challenges and how to overcome them:
- 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.
- The second challenge was to create a serverless api to handle the requests to the database. I used Vercel Functions for this.
- 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?- What do you like about the project?
- What can be done better?
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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