FARM Stack Course - FastAPI, React, MongoDB

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

КОМЕНТАРІ • 175

  • @haaris4693
    @haaris4693 3 роки тому +64

    This channel should be awarded with honour for what they have been doing for the society ❤️

  • @Josh-qb4em
    @Josh-qb4em Рік тому +10

    I have this issue when watching tutorial videos like this where if the instructor makes a typo or something, I'll be hyper-fixated on it until it gets acknowledged. Anything said/taught between the time of the typo and the time of acknowledgment goes in one ear and out the other. So the fact that you did those little popups immediately acknowledging it was wonderful.

  • @kabylekabyle9250
    @kabylekabyle9250 3 роки тому +8

    Hello! thanks you sir carnes FCC, thanks all of you guys to help us.

  • @marcscherzer
    @marcscherzer 3 роки тому +22

    Didn't know FARM stack existed ...

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

    Thanks, I can finally see the big picture how each component (FastAPI, React, MongoDB) connects togther!

  • @jeanleloup2205
    @jeanleloup2205 3 роки тому +17

    MongoDB not graphql - Thank you for this refreshing turtorial

    • @martynbirdem189
      @martynbirdem189 3 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @nyashachiroro2531
    @nyashachiroro2531 3 роки тому +9

    I love this stack

  • @erickheredia8910
    @erickheredia8910 3 роки тому +43

    Next Stack: NUTS (Nuxtjs, TailwindCSS, Supabase). Mark my words!

    • @martynbirdem189
      @martynbirdem189 3 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

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

      Don’t you mean get on your NUTS? 😂

  • @satyasridevi851
    @satyasridevi851 3 роки тому +4

    I just saw this stack in mongodb channel live

    • @satyasridevi851
      @satyasridevi851 3 роки тому +1

      @c_a yes ua-cam.com/users/MongoDBofficial

  • @peterkulik5943
    @peterkulik5943 3 роки тому +22

    0:02
    "The FARM stack is FastAPI, React and GraphQL."
    I went through this video, but I didn't find any other reference to GraphQL

    • @martynbirdem189
      @martynbirdem189 3 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

    • @aureli4nus
      @aureli4nus 3 роки тому +5

      probably just a miss on their side, it shouldbe MongoDB not GraphQL

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

      These 3 letter acronyms don't make sense anymore, and most of them wont sound good, or be memorable.

  • @mayankrai165
    @mayankrai165 3 роки тому +7

    Love the channel ❤️ such great content

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

    First,
    Edit: tomorrow's my exam and these pple posting one after other videos, cool videos

    • @BekBrace
      @BekBrace 3 роки тому

      Thank you 🙏

  • @piyushmahapatra6405
    @piyushmahapatra6405 3 роки тому +26

    Waiting for some database to start with T to make it " FART Stack "
    Sorry for that joke :(
    Appreciate the Content

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

    That was an awesome short tutorial on farm stack✌

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

    GREAT JOB! Thank You, Bek !

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

      Thank you, Kratos :)

  • @JnrAUS
    @JnrAUS 3 роки тому +3

    First, and also fast api is really good!

  • @shahriar.shourov
    @shahriar.shourov 3 роки тому +3

    Thanks!

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

    Very good introduction , thank you !

  • @webcodingoprogrammingtips2090
    @webcodingoprogrammingtips2090 3 роки тому +33

    LAMP, MEAN, MERN, FARM - what is the next stack? :)

  • @123arskas
    @123arskas Рік тому +1

    Thank you so much for this. Now I can dive deeply into the FARM stack

  • @cybr774
    @cybr774 3 роки тому +8

    I'm somehow not able to delete the todos. Every time I press the button that removes the todo, in the console I get the following error: "Failed to load resource: the server responded with a status of 404 (Not Found)". The thing is that the uri is correct, but it somehow gives me that error. From the swagger UI it works fine, but it doesn't from the frontend. Any tips on what can be done to resole this issue? I'd appreciate it!
    Edit: I actually found the problem! If anyone is encountering the same problem, it's that in the file Todo.js, in the deleteTodoHandler, the uri is wrong (in the frontend , Bek Brace used this uri "localhost:8000/api/todo/${title}", while the API responds to "localhost:8000/api/todo${title}" and the difference is the / that shouldn't be there to match the uri to the API).

  • @nikolaikletnoi9346
    @nikolaikletnoi9346 3 роки тому +7

    This is a great guide!! Everything works really well and relative to other frameworks it is super-easy to learn and use; i was wondering if you could please show how to connect to mongodb proper ( in the cloud); i have tried a few things but somehow, something was off; it would be nice to connect to cloud, not just on-prem; thanks so much!!

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

    Can’t believe this is free. People charge hundreds for such lessons split into a bunch of short form videos.

  • @mauricefakhry8039
    @mauricefakhry8039 3 роки тому +3

    Great tutorial !!

    • @martynbirdem189
      @martynbirdem189 3 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

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

    this was really helpful, thank you!!

  • @dajlefromcb
    @dajlefromcb Рік тому +6

    If you are using Python 3.11, you have to use motor == 3.1.1 dependency.

  • @mareboinaravi5272
    @mareboinaravi5272 3 роки тому +1

    ❤️❤️MERN is love❤️❤️

  • @Shou06
    @Shou06 3 роки тому +4

    It would be great if there will be a course on deployment an web app

  • @sathyapriya3999
    @sathyapriya3999 3 роки тому +3

    Hi sir I just joined this channel .very usefull to my software study

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

    Thank you for such great videos , great work

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

    Wow, thank you so much for sharing the knowledge 🫡🙏👍😊

  • @kenfeier5542
    @kenfeier5542 3 роки тому +14

    For those that don't know Python, this can also be done using NodeJS, Express, and Mongoose. You can create a schema and set routers that can generate simple CRUD API calls in a very similar way as the FastAPI.

    • @revernd2491
      @revernd2491 9 місяців тому +1

      ofc, but that defeats the very purpose of this course

  • @raphael6441
    @raphael6441 3 роки тому +6

    Thank you so much for this tutorial. I'm just wondering how and how often the data are refreshed ? The backend seem to have a lot of requests in my implementation.

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

      Does the official docs not mention anything about that?

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

      @@rice5817 yes i was facing the same problem because there is no dependency on which the state should change that is why we get that endless api calls in terminal.
      Solution-> create a new usestate key with initial value set to 0.Then in useeffect just add 1 in old key
      const [refreshKey, setRefreshKey] = useState(0);
      useEffect(() => {
      axios.get('localhost:5007/fetch_all_todo')
      .then(res => {
      setTodoList(res.data)
      })
      }, [refreshKey]);
      const addTodoHandler = (id,title,desc) => {
      axios.post('localhost:5007/create_todo', { 'id': id, 'title': title, 'description': desc })
      .then(res => setRefreshKey(oldKey => oldKey +1))

  • @Faybmi
    @Faybmi 3 місяці тому

    40:12 if you don't have todo in mongo, try post method in docs

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

    How do we dockerize this stack?

  • @michaeljayarizala9305
    @michaeljayarizala9305 3 роки тому +5

    Great tutorial very easy to follow along! Do you have any suggestion for an ideal approach to adding user authentication in FastAPI i.e. recommended authentication library we can use that allows pbkdf2 or ssha encryption as well as generating session tokens?

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

      Thank you, Michael - glad to hear :)
      I have a tutorial for user authentication with FastAPI and JSON Web Tokens - maybe this can help you : ua-cam.com/video/0_seNFCtglk/v-deo.html

  • @horizons4225
    @horizons4225 3 роки тому +1

    thank you

  • @BlakeTedKord
    @BlakeTedKord 3 роки тому +5

    FCC Team - Will there be a complete class with more courses in a playlist on the topics of computer vision/Neural network and CISSP and SEC+? I’m sure a lot of people here would look forward to that.

    • @martynbirdem189
      @martynbirdem189 3 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @sachinsudaraka6397
    @sachinsudaraka6397 3 роки тому +1

    Thanks

  • @mdabirkhan1103
    @mdabirkhan1103 3 роки тому +4

    Woow🥰🥰🥰

  • @ketchupparty9997
    @ketchupparty9997 3 роки тому +1

    A course on Three.js please

    • @martynbirdem189
      @martynbirdem189 3 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

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

    great : and you have a good , easy to follow voice. Some FCC courses have AWFUL voices , super hard to listen to for long....high extrinsic cognitive load imposed!

  • @mrrishiraj88
    @mrrishiraj88 3 роки тому +3

    👍

  • @himanshusharma-ve7uj
    @himanshusharma-ve7uj 2 роки тому +3

    I am facing pydantic.error_wrappers.ValidationError: 1 validation error for Todo
    response
    value is not a valid dict (type=type_error.dict) , While calling post method response = await create_todo(todo.dict()) . Please can you help in this.

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

      At database.py you need to change return of create_todo function to "document", not "result" value.

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

      @@bohdan134 In the video he said that was a mistake. He should correct somewhere or do an annotation.

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

      @@bohdan134 And because of that error I discovered I can put multiple Duplicate titles. is there a primary key in Mongo DB

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

    I clicked on this video because the stack name sounds interesting.

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

    26:12 Why do you use await? I tried to run program without await but it also runs nomarlly.

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

    So I'm trying to follow along with this tutorial, but when I run both front and backend, once my react page loads, it continuously makes calls and doesnt stop. I also am unable to delete or create tasks. Does someone have a repo of this project I can check out?

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

      It's the onChange that makes the call continuously for me. As for the deletion and creation of tasks, even I'm facing the same issue. An empty task is being displayed for me

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

    Why start with todo ids when defining routes and then switch to using titles as identifiers?

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

      That's a great point. Using title as an identifier is bad practice. What if you have duplicate titles, for example? Stick to the todo id, which is always unique!

  • @rangabharath4253
    @rangabharath4253 3 роки тому

    Awesome 👍😎

  • @BayarUdval
    @BayarUdval 3 роки тому

    Nicely done, :)

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

    I could feel the lag after 45:00 in real life

  • @tranquillityEnthusiast
    @tranquillityEnthusiast 3 роки тому

    Need a mean stack full course..

  • @xokyle
    @xokyle 3 роки тому

    Why do you prefer NPM over YARN?

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

    Im using angular as frontend but i really liked the backend part

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

    In Poland it is AŻUR not aizure

  • @florijnterstal6590
    @florijnterstal6590 3 роки тому +4

    Nice.. now make the right tutorial... FastApi, Vuejs and PostgreSQL

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

    Where is the video to set up the paths?

  • @ananthvankipuram4012
    @ananthvankipuram4012 3 роки тому

    FARM stack is proudly sponsored by the exceptional Farmers over at Ligue1! Jokes apart, at this rate we have MERN, PERN, NERN(Next) and we will have JS Fatigue all over again. LOL

  • @tr.j4079
    @tr.j4079 3 роки тому

    Can we have a FARM with Fastify?

  • @leewseea
    @leewseea 3 роки тому +3

    I thought u have some really cool mouse pointer afterimage effects, but it was just the video lagging XD

    • @BekBrace
      @BekBrace 3 роки тому +1

      Yes, I apologize for that, it also bothered me when I was done recording

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

    when creating a post I get the error "object has no attribute 'dict'

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

    what's he using to run Linux terminal on windows?

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

    Hi im having trouble. axios keeps calling backend api when fetching all todos in useeffect part. Is this expected?

  • @TheHummChannel
    @TheHummChannel 3 роки тому

    Why did not you use Moralis Serverless?

  • @danielibanez1855
    @danielibanez1855 3 роки тому +3

    How common would a FAVM stack be? 🤔

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

      I'd love to recreate this with Vue.js someday

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

    Is this serverside rendering or clientside rendering?

  • @МатвейВолков-ы8р
    @МатвейВолков-ы8р 3 роки тому

    when will be java backend tutorial?

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

    Ehh enterprise not use mongo :( I need FARP Postrges variant

  • @sukantagarwal6824
    @sukantagarwal6824 3 роки тому +1

    Hi, can you provide the link for fast api course in comments?

    • @TR1ckY_TV
      @TR1ckY_TV 3 роки тому +1

      there you go Bro
      ua-cam.com/video/62pP9pfzNRs/v-deo.html

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

      @@TR1ckY_TV thanks bro!

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

    I am not able to import motor package .... tried upgrading all packages also still the same problem is there

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

      most likely it is a python-version-related problem

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

      It's probably an issue with how you setup your virtual environment and if you are using VS Code, you need to check and see that you're using the correct interpreter that matches with your current venv file. You can press Ctrl+Shift+P and select "Python: Select Interpreter". Choose the one with (venv) or having "Recommended". You may need to restart your VSCode window sometimes.

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

    Superb tutorial
    I also had the same problem in VS code so i used PyCharm😁😁😁😁

  • @manliomarchica4911
    @manliomarchica4911 3 роки тому +4

    I see in the console of the browser that
    // Read all todos
    useEffect(() => {
    axios.get('localhost:8000/api/todo')
    .then(res => {
    setTodoList(res.data)
    })
    });
    generate and infinite call to get todos as the component App was continuosly rendered. I add [] as second parameter of useEffect to call it once and change the add handler to update the state, further I move the delete hanlder in the App.js and pass the reference deep in the child component, also in the delete handler I have to update the state
    // Post a todo
    const addTodoHandler = () => {
    axios.post('localhost:8000/api/todo/', {
    'title': title,
    'description': desc
    })
    .then(res => {
    console.log(res);
    const newTodoList = [...todoList];
    newTodoList.push(res.data);
    setTodoList(newTodoList);
    });
    }
    const deleteTodoHandler = (title) => {
    const encoded = encodeURI(`localhost:8000/api/todo/${title}`);
    axios.delete(encoded)
    .then(res => {
    console.log(res.data)
    const newTodoList = todoList.filter(item => item.title !== title);
    setTodoList(newTodoList);
    });
    };

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

      Thanks Manlio, nice update to this great video. Quick question: how did you pass the reference after moving "deleteTodoHandler" tp App.js? Can you please show example?

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

      @@isaacafara5811
      useEffect(() => {
      readTodosHandler()
      }, [todoList])
      This will watch when todoList changes (I didn't have to move the delete function). Also it's a good idea to extract the useEffect axios call into it's own function.

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

    Now we need something a T so we can have a FART Stack

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

      FastAPI React TErraform DynamoDB - FARTED

  • @komandan6868
    @komandan6868 3 роки тому

    Bro tutoriall full video python androidhelper... Plsee bro🙏🙏

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

    The web dev had a FARM, E-I-E-I-O...

  • @utkarshbansal2758
    @utkarshbansal2758 3 роки тому

    pls make a course on ios development using swiftui

    • @martynbirdem189
      @martynbirdem189 3 роки тому

      ua-cam.com/video/S5FzZPpqndY/v-deo.html Javascript tutorial easy example
      ua-cam.com/video/waXnjADEEAg/v-deo.html

  • @rohitkumarb.r3865
    @rohitkumarb.r3865 6 місяців тому

    What about update?

  • @athulkrishnadiyil1735
    @athulkrishnadiyil1735 3 роки тому

    how to use gridfs/imageupload with fastapi motor

  • @satyasridevi851
    @satyasridevi851 3 роки тому

    Is FastAPI python framework?

  • @amirbraham6507
    @amirbraham6507 3 роки тому +1

    How would you go about deploying it on heroku for example ? Do you host two separate apps and hard code your backend url instead of localhost:3000 ? Thanks in advance

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

    24:00
    33:00

  • @yashvarshney6761
    @yashvarshney6761 3 роки тому

    How to deploy this?

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

    Can anyone help me how to upload file in FARM stack

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

    At 40:17 my database did not connect to the compass. I even replaced all of my code with the one in the repo and it still didn't work. Does anyone know what the problem could be?

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

      I think, i have the same problem, for me it works when i do close vs code and open again and do the post method.

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

      Execute the post method after the connection- that triggers the automatic creation of the TodoList database (since we already have established the connection)

  • @Deiwulf
    @Deiwulf 3 роки тому

    666.. that's bound to be some sort of a sign

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

    Hi
    thank you for an amazing tutorial. I can not find the FastApi course, would you share the link?

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

    Save my life!!!!

  • @thesameerjoshi
    @thesameerjoshi 3 роки тому

    Thats a lot of stack rhyme

  • @Ken-S
    @Ken-S 3 роки тому +3

    LMAO - Linux, Mongo, Angular, OpenAPI

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

    Could you please do a video on how to deploy this to Google cloud? or firebase? or any hosting?

  • @Abdiwazic
    @Abdiwazic 3 роки тому +1

    First♥️

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

    Who wants LAME stack next ?

  • @sardor1391
    @sardor1391 3 роки тому

    Make channel like that on Russian

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

    Wooo 7 comment 😂

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

    32:45

  • @neotiwari3772
    @neotiwari3772 3 роки тому +1

    Fourth

  • @shahriar.shourov
    @shahriar.shourov 3 роки тому +1

    First

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

    Thanks!