Full Stack ToDo App | Node, React, Express, MongoDB Tutorial

Поділитися
Вставка
  • Опубліковано 6 лис 2024

КОМЕНТАРІ • 102

  • @TheBraveCoders
    @TheBraveCoders  8 місяців тому +3

    Those who have trouble in delete api kindly change the code of HandleApi.js's deleteToDo Function to:
    const deleteToDo = (_id, setToDo) => {
    axios
    .delete(`${baseUrl}/delete`, { data: { _id } })
    .then((response) => {
    console.log("Delete API call successful");
    getAllToDo(setToDo);
    })
    .catch((error) => {
    console.error('Error deleting todo:', error);
    });
    };

  • @danishaleyash7609
    @danishaleyash7609 2 роки тому +2

    u r a hard working man Sir

  • @anish_rawat-i3m
    @anish_rawat-i3m 10 місяців тому

    Thanks a lot i have learn full MERN stack only in this video

  • @dhineshkumar2044
    @dhineshkumar2044 11 місяців тому

    @TheBraveCoders your awesome bro, thanks for the wonderful video

  • @geetikakopuri530
    @geetikakopuri530 7 місяців тому

    Very Usefull
    I have completely followed the video

  • @abhishekraut4082
    @abhishekraut4082 Рік тому +2

    Great Tutorial Brother :),Simple and quick.

  • @tanmayhedau5342
    @tanmayhedau5342 Рік тому +4

    awesome video bro please make such more short MERN project videos, we are waiting..

  • @ideepanshubatra
    @ideepanshubatra 6 місяців тому

    Thanks a lot for making my backend project 🩷

  • @JayaMoka
    @JayaMoka 8 місяців тому +3

    Could anyone please help me in adding the mark todo as completed in both frontend and backend

    • @TheBraveCoders
      @TheBraveCoders  8 місяців тому +1

      Take a boolean 'done' in backend and default value will be false. Once user click on checkbox from FrontEnd update its value to true. Based on that do a conditional rendering of text like this:
      {done ? todo.text : todo.text}
      That's how u will do it dear 🤭

  • @danishaleyash7609
    @danishaleyash7609 2 роки тому +3

    Thanks sir you inspired many people 😊

  • @newtonwakhungu9597
    @newtonwakhungu9597 5 місяців тому

    Thanks bro.. your tutorial was amazing

    • @mrinalraut7547
      @mrinalraut7547 2 місяці тому

      Did u complete the project? How was it? Did you face any error?

  • @Koro-qr7qe
    @Koro-qr7qe Рік тому +1

    Thank you for uploading such an amazing video!!

  • @Sandy-px1fz
    @Sandy-px1fz Рік тому

    question for getting my first job as web developer which projects you recomend me to do and this one to do app is good too i mean it will help me to find job

  • @anjalidaksha9793
    @anjalidaksha9793 Рік тому +2

    Sir please help me out with this error toDo. map is not a function

  • @iamhritikpawar
    @iamhritikpawar Рік тому +1

    Can you guide me for what if I have to do a nested todo list like list inside a list. Like main todo and under it sub todo.

  • @bacskaizsombor1245
    @bacskaizsombor1245 Рік тому +1

    Thank you very much, it helped a lot!

  • @nadetdevfullstack7041
    @nadetdevfullstack7041 8 місяців тому

    Excellent

  • @PrakashNayak-uv1ry
    @PrakashNayak-uv1ry 2 роки тому +3

    there is one problem when we add empty list node server stops

    • @TheBraveCoders
      @TheBraveCoders  2 роки тому

      Yeah that because the text filed is required in mongoose schema,
      You can check for empty on frontend and return from save todo function if text field is empty.

    • @prajeshkishore3824
      @prajeshkishore3824 2 місяці тому

      Sir how this can be done ..can you tell in step wise ​@@TheBraveCoders

  • @mahaburrahman1666
    @mahaburrahman1666 Рік тому

    tnx for sharing yr knowledge

  • @kenklum
    @kenklum 2 роки тому +1

    great content! keep it up!

  • @rahulgoswami1022
    @rahulgoswami1022 Рік тому

    Thank you so much bro 🙏🙏❣

  • @HappyCougar-kc5xz
    @HappyCougar-kc5xz 7 місяців тому +1

    Good

  • @Code_learner001
    @Code_learner001 Рік тому +1

    Thank you so much!
    Amazing App

  • @pritam7461
    @pritam7461 8 місяців тому

    After clicking on the Add button, the task name is not being displayed inside the bar. Also, when I click on the delete icon the task does not get deleted. Would have been helpful if the source code was available :)

    • @TheBraveCoders
      @TheBraveCoders  8 місяців тому

      The source code is there already u just have give a small amount 😉 to support the dev & his hardwork 😌

  • @jorgerivera405
    @jorgerivera405 Рік тому

    hi bro, if i want use localhost insted mongoose, what can i do? can u help me pls.

  • @vinaybh3310
    @vinaybh3310 Рік тому

    Thank you! very useful

  • @shridharsarraf2188
    @shridharsarraf2188 Рік тому

    You used POST request for creating, deleting and updating, can you please tell how i can use DELETE request and PATCH request, because i want to make it look proper CRUD app

    • @TheBraveCoders
      @TheBraveCoders  Рік тому

      Just change post to delete or put, everything else should be same

    • @thanosv2170
      @thanosv2170 Рік тому +2

      @@TheBraveCoders but brother. we can change the post to delete or put in router. also i changed post req to put req in axios too(update functionality is working well). but how should i change post to delete req in axios?.. it doesn't work. help me

    • @akotech79
      @akotech79 Рік тому

      its not working on my side but it showing deleted at the backend but the frontend remain unchanged@@thanosv2170

  • @멩또-u4h
    @멩또-u4h 2 роки тому +1

    I don't know coding well, but I followed the video. Can you tell me the code for making a checkbox to strike a strikethrough in the code here? (This comment has been translated
    )

    • @TheBraveCoders
      @TheBraveCoders  2 роки тому +1

      You can do that using tag for eg: Some text here
      Just do this on checkbox ✅ onChange()

  • @divyaanimations
    @divyaanimations Рік тому

    best video

  • @FaridDiraf-l1b
    @FaridDiraf-l1b 2 місяці тому

    Why is he doing .then if he is setting his function as async? And why using req.body instead of req.params for id? And of course respectively, post for put and delete methods?

    • @TheBraveCoders
      @TheBraveCoders  2 місяці тому +1

      Yeah u r right,
      That's an old video things have been improved here: ua-cam.com/video/xElA9mGi-I0/v-deo.html

  • @anushreesharma4129
    @anushreesharma4129 9 місяців тому

    i am facing the errr of todo map is not a function. how should i proceed?

  • @afroz1189
    @afroz1189 7 місяців тому +1

    bro hello my update and delete button are not working can u help ill upload code on github if u reply pls..

    • @TheBraveCoders
      @TheBraveCoders  7 місяців тому

      Sure upload on GitHub I'll see

    • @afroz1189
      @afroz1189 7 місяців тому

      ​@@TheBraveCoders bro r u deleting my comments? I uploaded github link 2 times.

    • @TheBraveCoders
      @TheBraveCoders  7 місяців тому

      Maybe since your comment was containing a link it got filtered by UA-cam as spam.

    • @afroz1189
      @afroz1189 7 місяців тому

      @@TheBraveCoders Hello bro i fixed that problem but when I update todo, page becomes blank and I have to refresh it to get all todo's again. Any solution?

    • @TheBraveCoders
      @TheBraveCoders  7 місяців тому

      Do event.preventDefault() just email the repo link at thebravecoders@gmail.com

  • @aashikmunaf1103
    @aashikmunaf1103 Рік тому

    bro that react icons (edit,delet)not showing but i installed properly

    • @TheBraveCoders
      @TheBraveCoders  Рік тому

      Try changing the color maybe they are of same color as background

  • @srijankumardas1626
    @srijankumardas1626 Рік тому

    u did not show postman setup and startup

  • @prakashpanguluri2328
    @prakashpanguluri2328 5 місяців тому

    I'm not able to get data from backend . Can anyone help😭😭

  • @vivekprajapat105
    @vivekprajapat105 Рік тому

    nice bro , i love it 🥰🥰❤❤

  • @Sakib4771
    @Sakib4771 Рік тому

    thanks

  • @gun_batuhan
    @gun_batuhan 7 місяців тому

    Update button is not working anyone can help ?

  • @sqbrackets7445
    @sqbrackets7445 Рік тому

    58:16 here when i am cloiking on update button it is not updating and changing the button to add please help

    • @akotech79
      @akotech79 Рік тому

      replace with this code for update then everything will be find
      const updateToDo = async(toDoId, text, setToDo, setText) =>{
      try {
      const {data} = await axios.put(`${baseUrl}/update`, {_id: toDoId, text})
      console.log(data);
      setText("")
      //setIsUpdating(false)
      getAllToDo(setToDo)
      } catch (error) {
      console.log(error);

      }
      }
      I had that same problem but after commenting out the setIsUpdating then everything was okay

  • @멩또-u4h
    @멩또-u4h 2 роки тому

    thank you

  • @divyanshmishra5121
    @divyanshmishra5121 Рік тому

    Netlify is not working. It is flagging all my accounts as fraud. What alternative can I use to deploy my website?

  • @anjalidaksha9793
    @anjalidaksha9793 Рік тому

    Why did we use cors module?

    • @TheBraveCoders
      @TheBraveCoders  Рік тому +1

      To allow request from cors origin,
      In simple words to allow request from anywhere

    • @akotech79
      @akotech79 Рік тому

      The allow backend to communicate with front end request when using the route APIs

  • @waefr7878
    @waefr7878 Рік тому +1

    20:28

  • @MuhammadYasirGhaffar
    @MuhammadYasirGhaffar Рік тому

    Render has been changed to pay. Any replica service?

  • @mxmn7295
    @mxmn7295 4 місяці тому

    Buddy is there login signup option also

  • @anjalidaksha9793
    @anjalidaksha9793 Рік тому

    I'm facing an error
    map.toDo is not a function
    Runtime error

    • @TheBraveCoders
      @TheBraveCoders  Рік тому

      Try following this tutorial:
      ua-cam.com/video/xElA9mGi-I0/v-deo.html

    • @anjalidaksha9793
      @anjalidaksha9793 Рік тому +1

      ​@@TheBraveCodersSir is there no way to remove this error?

    • @anjalidaksha9793
      @anjalidaksha9793 Рік тому

      ​@@TheBraveCoderssir please help me out

    • @Deepusingh-ct6kx
      @Deepusingh-ct6kx Рік тому +2

      @@anjalidaksha9793 issue is because the variable on which you are mapping doesn't contain anything or may be not interable, first console and check if anything coming in that variable or not and to avoid these error use (?) Ex. record?.map() , use like this

    • @akshatdubey4421
      @akshatdubey4421 9 місяців тому

      were you able to solve this issue?

  • @ankitaghadge.1337
    @ankitaghadge.1337 Рік тому

    How to create database on mongo db server?

    • @TheBraveCoders
      @TheBraveCoders  Рік тому

      Click on create cluster button.

    • @ankitaghadge.1337
      @ankitaghadge.1337 Рік тому

      ​@@TheBraveCoders i have created cluster but from where that ToDoApp database came in MONGODB_URL???

    • @TheBraveCoders
      @TheBraveCoders  Рік тому +1

      Just click on connect >> connect to your application >> copy the URL.
      Then edit & add ToDoApp manually in the link just before "?"

  • @chetan_nada
    @chetan_nada Рік тому

    your live link is not working?

    • @TheBraveCoders
      @TheBraveCoders  Рік тому

      There's some issue with render.com, you can host on other website.

    • @chetan_nada
      @chetan_nada Рік тому

      @@TheBraveCoders okay. so another website?? please mention some name please.

  • @MakarovSergey39
    @MakarovSergey39 10 місяців тому

    included deployment or not bro?

    • @TheBraveCoders
      @TheBraveCoders  10 місяців тому +1

      Yes we deployed it on render.com but its paid service now

    • @MakarovSergey39
      @MakarovSergey39 9 місяців тому

      @@TheBraveCoders yeah just try another simpler option -- vercel. For backend and frontend altogether less than 5 minutes lmao.

  • @niteshsharma1858
    @niteshsharma1858 6 місяців тому

    content quility - bad,
    understanding - bad,
    not for biggner programer

  • @yogeshr3916
    @yogeshr3916 Рік тому

    Waste half of the code this not shown

    • @TheBraveCoders
      @TheBraveCoders  Рік тому

      What not shown?

    • @yogeshr3916
      @yogeshr3916 Рік тому

      @@TheBraveCoders put and delete not working you only use post method to update and delete

    • @akotech79
      @akotech79 Рік тому

      Nice work bro but the delete is not working but at the backend shows deleted successful but not in the database or react app@@TheBraveCoders

    • @afroz1189
      @afroz1189 7 місяців тому

      ​@@akotech79update also not working bro can u help?