Build your first API with Dart | Dart server with gRPC Complete course 2021

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Hello guys, you can access the full version of this course on SKILLSHARE FREE if you sign up using this link 👉skl.sh/3lq71eC
    In this video we are going to learn Dart for server-side programming, we are going to build an API for a fictional groceries store using DART and gRPC
    JOIN THE SLACK CHANNEL 👉 join.slack.com...
    Project source code: 👉 github.com/San...

КОМЕНТАРІ • 58

  • @SantosEnoque
    @SantosEnoque  2 роки тому +7

    You can access this course for Free if you sign up to Skillshare using this link 👉 skl.sh/3lq71eC

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

      This is great, but any chance you could add some sections to your Skillshare course that cover Interceptors for the gRPC server with JWT authentication?

  • @davidowens9597
    @davidowens9597 2 роки тому +8

    This is exactly what I needed because I'm going to create a gRPC server with Dart that connects to a PostgreSQL database.

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

      How would you connect it to a database? I guess that the mock file data.dart will not be useful anymore. For example, how could we connect this gRPC server to a cloud database like cloud firestore?

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

      @@pbznt I connect it to a Postgres database. I'm not sure how you would connect it to Firestore.

  • @michaelamir6504
    @michaelamir6504 2 роки тому +5

    In REST API, you link certain endpoints to certain functions/code. In RPC, you define the structure and generate files and then implement the structure with functions/code. It's almost the same, you're just linking some code to some events and getting input and sending output. Endpoints or generated code, still doing the same thing.

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

      Exactly, with RPC you “call other remote functions” when you use the .proto file to generate code you will have access to all of the rpc methods defined in the server

  • @grupodrn6130
    @grupodrn6130 2 роки тому +4

    The best flutter content on UA-cam is here ❤️

  • @thearmanhanda
    @thearmanhanda 2 роки тому +4

    Wow! Amazing course on cutting edge technology! I am looking forward to watching this full course

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

    Can you also please show how to integrate this api in frontend with Web, Flutter, native Android Native iOS or React ?

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

    Hello Santos. I'm a big fan of your tutorials. What if I want this API to be the middle-man between the front-end, and a database like Google Cloud Firestore? Now, you are using mock data coming from data.dart. But in real life, we would use something like Google Cloud Database. This API would act as the server for the client (a user on iPhone), but it would act as the client for the cloud Firestore Database... right? I've always been told not to interact with a database directly from the front-end, and always use a middle-man API (microservice on google cloud). How would we send data and retrieve data from google Cloud Database? I guess it would be quite easy to do. Does it? Thanks.

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

      Hey Philippe, first of all thanks for watching the videos. Yes you are write! it is ideal to not interact with a database directly from the frontend, unliness its something like firebase which as a very robust SDK. And yes we can easily use a database provider instead of the data.dart file, the reason why I didn't is because at the time of creation of this tutorial the main focus was just Dart grpc, maybe I come back to it and make something more complete and that can be easily usable in a real-life scenario.

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

      @@SantosEnoque Thanks! I’ll wait for it! And I will try to achieve it myself too! But I am not as skilled as you!:)

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

      @@pbznt I am sure you can do it

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

    Bem vindo de volta! Já há muito tempo sem videos!

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

      Hahaha obrigado! Mas agora voltei e tenho uns videos muito bons para publicar, desculpas ai pela demora

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

    as you are always saying, i highly recommend to do it in REST please. appreciate it

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

    Muito Obrigado por fazer esta contribuicao !!!! Desejo sorte e sucesso pra vc Man ! (Thank you so much for making this contribution!!!! I wish you luck and success Man!)

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

      Muito obrigado cara! É sempre bom saber que de alguma forma ajudou a comunidade 🙏

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

    I hope you are well. Your Videos are loved by me!

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

    I really like Dart, but leaving Flutter aside. Is Dart-server side worth learning?
    I mean, there was dart aqueduct and now is gone (no more updates)
    Does Dart-server have a good performance comparing against .Net or Spring?

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

    We've missed you

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

    Keep Doing bro!

  • @Sebastian-zs8cp
    @Sebastian-zs8cp 2 роки тому

    hi, what is the difference between protoc -I protos\ protos\groceries.proto --dart_out=grpc:lib\src\generated AND protoc -I protos\ protos\groceries.proto --dart_out=lib\src\generated
    for java why i can't use it protoc -I protos\ protos\groceries.proto --java_out=grpc:lib\src\generated ONLY protoc -I protos\ protos\groceries.proto --java_out=lib\src\generated and than generated one file Groceries.java

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

    I haven't seen it yet, but I'll share!

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

    awesome one.. Great job again.

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

    Good Work. As much as I've understood, to consume the API in Flutter, we just have to take the same .proto files and do the same generation step and then implement the client code in a similar way as you have done, right?!

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

      Yes Michael! And I am glad you’ve mentioned it because I forgot to do it in the course, what you need is the .proto file and you also need to generate the dart code

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

    he is back!

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

    Hello Santos, thank you for good work you been doing. Am following your tutorial on API with dart GRPC and got to generating protoc and here is the code you provided protoc -I protos/ protos/groceries.proto --dart_out=grpc: lib/src/generated
    After doing all of the above, it is still not generating. Please kindly provide solution using windows 10 so that we can follow. Thank you.

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

    35:00

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

    Which is the best language for create bakend? Dart vs python.
    Thank you!

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

    best channel
    keep flutter up

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

    thanks so much for this aweasom tutorial :)

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

    thank you so much for this!

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

    Looks great. Seems like skillshare has a monthly cost, so does that apply to this course?

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

    what is exlamation mark mean after func in 1:47:17

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

    Thank you 💙

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

    Good course.but i have to forward x1.75

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

    So why to build APIs with DART?

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

      First of all if you are a flutter developer you don’t have to learn another language apart from Dart! But for this course specifically you will learn gRPC instead of REST and gRPC os usually faster than rest, sometimes its up to 7 to 10x faster

  • @Sebastian-zs8cp
    @Sebastian-zs8cp 2 роки тому

    is the helper folder equal to util folder?

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

    Liiitttt

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

    santos!!

  • @Ben-wf5ji
    @Ben-wf5ji 2 роки тому +1

    ❤️❤️❤️❤️❤️

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

    power

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

    Bro can you help us in a paid project?

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

      Hello mate! I am sorry but at the moment I am not working with paid projects

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

      @@SantosEnoque sure but will give a share of company revenue. Just assist us mate.

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

    after 2 months