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...
You can access this course for Free if you sign up to Skillshare using this link 👉 skl.sh/3lq71eC
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?
This is exactly what I needed because I'm going to create a gRPC server with Dart that connects to a PostgreSQL database.
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?
@@pbznt I connect it to a Postgres database. I'm not sure how you would connect it to Firestore.
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.
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
The best flutter content on UA-cam is here ❤️
Thank you very much
Wow! Amazing course on cutting edge technology! I am looking forward to watching this full course
I am glad you like it
Can you also please show how to integrate this api in frontend with Web, Flutter, native Android Native iOS or React ?
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.
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.
@@SantosEnoque Thanks! I’ll wait for it! And I will try to achieve it myself too! But I am not as skilled as you!:)
@@pbznt I am sure you can do it
Bem vindo de volta! Já há muito tempo sem videos!
Hahaha obrigado! Mas agora voltei e tenho uns videos muito bons para publicar, desculpas ai pela demora
as you are always saying, i highly recommend to do it in REST please. appreciate it
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!)
Muito obrigado cara! É sempre bom saber que de alguma forma ajudou a comunidade 🙏
I hope you are well. Your Videos are loved by me!
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?
We've missed you
❤️ Back like I never left
Keep Doing bro!
Thank you very much
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
I haven't seen it yet, but I'll share!
Thank you Sergio
awesome one.. Great job again.
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?!
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
he is back!
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.
35:00
Which is the best language for create bakend? Dart vs python.
Thank you!
best channel
keep flutter up
thanks so much for this aweasom tutorial :)
Thank you very much
thank you so much for this!
Looks great. Seems like skillshare has a monthly cost, so does that apply to this course?
what is exlamation mark mean after func in 1:47:17
Thank you 💙
Thank you for watching
Good course.but i have to forward x1.75
So why to build APIs with DART?
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
is the helper folder equal to util folder?
Liiitttt
santos!!
❤️❤️❤️❤️❤️
power
Bro can you help us in a paid project?
Hello mate! I am sorry but at the moment I am not working with paid projects
@@SantosEnoque sure but will give a share of company revenue. Just assist us mate.
after 2 months
Back like I never left