Flashcards Challenge Project (Redux)

Hi, everyone :wave:
I just finished the Flashcards project and I’m sharing the code here for review and some feedback.
One thing that got me was that, by the end of the project, the counter showing the number of quizzes related to a topic was not working (none of the tasks instructed that :laughing: ). I wrote the code to dispatch the “addQuizId” action with the same submit handler used to dispatch the “addQuiz” action.
By the way, I declared “addQuizId” in the reducers attribute object, not in the extraReducers attribute object that was mentioned in the task. I got confused because it keep giving an error message so I move it to the reducers object and it worked.
Maybe it was not a clean solution. Let me know what you think.
Thanks to all!

GitHub Repository

** Netlify Live Site**

in the end a fun project! Glad I stuck through to reinforce and gain confidence using States, Action Creators, and even Extra Reducers!

For me, it helped adding console logs to trouble shoot along the way using the browser’s Web Developer Tools.

https://github.com/pete08/flashcards-v1

Cheers!

Hi everyone! :raised_hands:

Below is the link to my Github repo for the project solution. Hope this helps someone stuck in the project.

Flashcards Challenge Project Solution

Was stressful a little and needed slight help from the solution code but then finally completed and took away some things to learn. Also, I added a condition where if the card’s front or back is empty then it will not add the card.
I found redux devtools to be really helpful.

Here’s my flashcards project:
Live website

Repo directory

Would be great to get some feedback. :grin:

1 Like

Hi There!

I’ve completed the project and it works properly. I’m leaving the link
Challenge Project: Flashcards

Hello everyone :wave:t2:
I’ve completed the project as well. It was challenging but fun since I didn’t get Redux at first time. Here are my links:

Live website
Repo directory

1 Like

Interesting that you are using “vercel” for deployment. Do you think it’s better that “netlify”? Can you say the difference? I checked my code with solution code as well, because I still didn’t understand it completely and had some issues :crazy_face:

Oh yes there was a reason I used vercel. For some reason netlify’s bot flagging system didn’t give me to create an account thinking that I’m some fraud. So that’s why I chose vercel. I found it to be really easy with deployment. But if netlify is working for you, go ahead with that. I chose vercel cause I had issues with netlify.

Also just to get a good learn about redux I’d recommend watching a tutorial on it by Dave gray on YouTube, I found his tutorial to be really easy and understandable. Here’s the link https://youtu.be/NqzdVN2tyvQ?si=1Kl0H0_7M92pS60A

Hope this helps! Good luck! :smile:

1 Like

Aah, I see. You did a good job completing the project and problem solving! Thank you very much for your advise. I’ll definitely check this tutorial :star_struck:

1 Like

I agree that it was helpful to practice what we had been learning. On the contrary, the Jamming project felt much too difficult and needed too much knowledge that had not yet been practiced at that point. The forums posts for that project echo my thoughts!

2 Likes

hi, i’m sharing with you my work, hope it helps someone stuck in this project
https://github.com/ali5573/-Project-Flashcards

Hello,

Here is my Flashcard solution

Regards,

Just completed my version. It didn’t take too long so hopefully if anyone is having issues this may help.

Projects/React Apps/flashcards

Just finished this project.
Some hints might not be updated.
Here is my repo.

:slight_smile:

Hey folks,

I usually share on forums when I feel really good about a project but this time I am posting while I know there are issues because I think it would be valuable to arrange a code review with someone.
I am in London, UK BST. I am around tomorrow during the day & then after half term so from 4th June.
I will compare with the solution now to help debug some of the issues. Basically the topic says 0 quizzes when I’ve assigned the topic to some quizzes. As others have said here there are a couple of tasks (12 & 16) that I got stuck on where it says to test on the site that the item appears but it only really appears properly when you use the selector in the following task. Feel free to look at my linked code. If I get it to work better from the solution or testing & debugging then I will commit but you can view the previous commit to see it at the current as of writing state.

Thanks.

https://github.com/mattsteen14/flashcards.git

1 Like

I felt very confused after the last Redux lesson and the News Reader project, so it took me a a few hours to do complete this one as I really didn’t want to rush it, and in the end it helped me so much to solidify the various Redux modules (minus the async things)

If you’re in a similar situation (feeling very confused), I suggest checking your code against the solution after completing each task, as opposed to only checking it at the end. That way you can really follow along each step without additional uncertainty.
Doing this really helped me clear up my confusion, so as long as you really take your time to complete the task on your own (using resources etc) before checking the solution, I think it’ll really help solidify the topics in the Redux module!

Here is my repo:
https://github.com/bisnd/flashcards-starting-code-react-v18/tree/main

Exact same thing happened to me! Spent like 30 mins trying to figure out why my quiz wasn’t loading and it’s because you need to select it in the next step!

My solution

Project Reflection

This project has been one of my favorites. Learning Redux has been incredibly rewarding, especially with the concepts of the store and state management. However, I still need to solidify my understanding of middleware, and I wish I had spent more time diving deeper into React Router.

In this project, I decided to add features like filtering by topic and the ability to delete quizzes and topics. I also implemented localStorage to persist changes across sessions and added a reset button to return the app to its default state. To enhance the user experience, I incorporated the SweetAlert2 library to display various alerts in the forms. I hope you enjoy exploring this project, and I would greatly appreciate your feedback and support.

Github Repo
Live Site

P.S. Does anyone have the recipe exercise along with the middleware exercises (createAsyncThunk) from Redux on GitHub? I would love to clone it for further study. Thanks in advance!

1 Like