How to build a Vue + FastAPI application (with JWT authentication)

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

КОМЕНТАРІ • 34

  • @PheakCoding
    @PheakCoding 3 місяці тому +2

    I hope you will make another video using Vue + FastApi and mongo-db local🙏

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

    Make more Vuejs and Nuxtjs content.
    Thank you 💚

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

    thats the easy could u provide any repo where protected routes or role based routes are used

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

    Do you have this tutorial in Node.js & Express version? Please please. I am currently creating my app in Vue js 3 and Node.Js. And I have problems wrapping my head around JWT/VUEX authentication.

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

    Very good clip. Thank you. It is fast with not so many details, that let you to do some work by yourself to understand everything. This is a modern CRUD app with very cool stack!

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

      Thanks friend! Glad you enjoyed it 🙂

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

    Don't we need to calculate the hash on the client and pass it to the server?

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

      Not for the initial login - we don't want the secret and stuff over there. If you mean just the hash, you technically can.

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

    Is there a reason you aren’t using the new mapped_column() functionality in sqlalchemy 2.0 ?

    • @codingwithroby
      @codingwithroby  6 місяців тому +1

      Nope - I probably should have used the mapped_column(). Both are fine to use imo!

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

    Taking requirements.txt from repository got error on pip install -r requirements.txt

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

      What error? You may be in the wrong directory

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

      @@codingwithroby : That's probably my fault. The video does not cover every step, cause a lot of things are created earlier, co I tried to create venv and directory "FastAPI" as in video FastAPI+React, then copy requirements.txt from your library and it ended with error.
      error: subprocess-exited-with-error
      × Getting requirements to build wheel did not run successfully.
      │ exit code: 1
      Traceback (most recent call last):
      File "C:\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in
      main()
      File "C:\Python312\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

      @@codingwithroby : Ok. I did it. I installed libs by "pip install" one by one. It works. The difference is maybe python-jose not jose package

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

    Do you have react JWT video?

  • @appmake9791
    @appmake9791 6 місяців тому +1

    Excellent. Thank You

  • @sapasflash5442
    @sapasflash5442 Місяць тому +1

    Please make more VUE JS + Python Tutorials. Meanwhile, this is exactly what I was looking for my ML App.

    • @codingwithroby
      @codingwithroby  Місяць тому +1

      Awesome! What exactly are you looking for?

    • @TrilioniME
      @TrilioniME 29 днів тому

      @@codingwithroby I would love to watch something built with Vue + FastAPI + ORM + SQLite and what takes an input from a user send it to OpenAI API and show the end user the result lets say in tiles :-)

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

    Thanks for a wonderful video on how to setup authentication with fastapi and jwt. Just wondering, what part of the code needs to be updated so we don't have to downgrade to vue@2, vue-router@3? Thanks again.

  • @dimeloloco
    @dimeloloco 3 місяці тому +1

    lol FastAPI takes longer to setup than Django. It’s as fast as trying to build an API with Flask lol

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

      Great video tho!

    • @codingwithroby
      @codingwithroby  3 місяці тому +2

      I think the Django vs FastAPI setup quickness is based on past experience. But, yes - it operates as a BE endpoint not a full stack framework.

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

    Now Svelte : )

    • @codingwithroby
      @codingwithroby  6 місяців тому +2

      I'll add it to the backlog of future videos 🙂

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

    This tutorial sucks if you have no knowledge of fastAPI

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

    and we put in a bunch of code.. Wow what an explanation. Never had once the impression you understand the code yourself. Copy & Paste is not coding. I wrote multiple FastAPI Endpoints, was looking for frontend introduction. Horrible
    Edit: grammar