Serverpod with Flutter | CRUD operations tutorial (Part 2)
HTML-код
- Опубликовано: 10 сен 2024
- In this tutorial we will see how to create Serverpod project and work with endpoints.
Also, we will cover all CRUD operations on Postgres DB.
Download Postico from here:
eggerapps.at/p...
If you like my work
Support Me on Ko-Fi : ko-fi.com/afza...
Join this channel to get access to perks:
www.youtube.co...
Gears ========
Camera 📸 || Canon 250D : amzn.to/34isdKr
Mic 🎤 || Maono AU-04 : amzn.to/341g9wS
#CodeX
Connect with me on social media:
FB: / codexdevs
Twitter: / afzalali_dev
LinkedIn: / afzalali15
Discord: / discord
MINDBLOWING!!!!!!!!!! I'M GONNA FAINT! Amazing! I loved this ServerPod!!!
Nice video series. I always recommend your videos to whom start to learn flutter. I also always check your tutorials even I m developing apps in flutter for 4 years. I just want to add one thing for these toturials that with latest upgrade of serverpod, protocols directory named models and, model creates its own repository called db. CRUD ops will be totaly removed to this repository class. and also update insert or delete ops for single article now called like Article.db.insertRow(), Article.db.updateRow() , Article.db.deleteRow().. etc, insert,update,delete methoths now expect list of models that operates bunch of ops at the time.
Much appreciated 😍 and thanks for valuable feedback
Failed to connect to the database. Retrying in 10 seconds. SocketException: The remote computer refused the network connection.
(OS Error: The remote computer refused the network connection.
, errno = 1225), address = localhost, port = 54421
Your doing an amazing job with these videos..but after watching for hour Id recommend a backend to be built with Node.js or python
more Serverpod tutorials plz, thanks, big fan from China
Finally 🔥😍
Hi, I have a problem when creating serverpod project. It does not have "generated" folder outside of lib (it does have a generated folder inside lib folder). Really appreciate if you can point out what is the issue. Thanks a lot.
How does serverpod deal with nested objects(joins) ?
Nice question, let me go through it.. I am sure it can handle any serializable object. But, let me test that first and then I can comment.
Excellent video, does serverpod support OAuth 2.0?
good explanation
Thanks! Keep watching
works perfectly, thank you
What should i do if a am on Windows and can't use Postico
Protocol (Folder/Directory) has been renamed to Models.
Good luck developers
when i run dart bin/main.dart
SERVERPOD version: 0.9.19 mode: development time: 2022-10-29 15:12:37.133315Z
2022-10-29 15:12:38.443669Z Failed to connect to database.
PostgreSQLSeverity.error 42P01: relation "serverpod_runtime_settings" does not exist
Check this:
docker-compose is successfully executed and both postgres and redis is Running/Started
am facing the same prb is there any solution?
i have the same problem, anyone solve this?
run \setup-tables.cmd on terminal and then detach docker
@@derekalves7512 Just copy the contents of the pgsql files in the generated folder and execute in pgadmin(windows, linux, mac) or Postico(mac) just like at 6:17. I think at the moment only mac allows for auto execution on running dart bin/main.dart
thanks a lot!!! so nice reverb
postico is for mac what will we use for windows?
what about window user are they also download postico?
Do you know now?
Please tell us how to uninstall Serverpod.
Excelent! thank you for sharing bro
Great! Flutter part of this video coming tomorrow.. 😍
alternative for potico? im using windows
Works well!! DANKEEE
Does it not work in Windows? postico
Excellent Video.
Thank you very much!
I tried doing same, but it gives the error:
my command: serverpod create myProj
Usage: serverpod [arguments]
nevermind got it resolved
Fix: project name should not have capital letter
I always get authentication faild with postgresql due to password
Hi, actually my server-postgres and server-redis are running and I can see them running on the docker but they when I open the link it says "Nothing to show the error"
You may try restarting the instance of docker, this trick always work 😅
can it handle big projects with many users?
I am learning getx, get cli, http (get and post api)
I hope you make 1 video guide how to get 1 api to listview and gridview (getx + http) and ontap to item navigation to detail new page
Look like app shopping....
how to make many to many ?
How can I add "server folder" and "client folder" on an existing flutter project?
You asked very important question.. Server and Client are totally different project, let me figure out how does it work with existing project and then will get back to you.
Nice
Thanks
Shold i install postgresql on windows first
It's is possible to connect mongodb
Currently it seems Serverpod was tailored to support Postgresql. Maybe things will change in future versions.
Bro there is another video in this serverpod playlist when will u release that?
Which video? Currently it has 3 video
@@CodeXdev when you click on the playlist it says a video is hidden. If there is a part 4 pls make it available. This serverpod series is really amazing.
That’s weird, I can see 4 videos count but it’s actually 3.
Never mind, working on part 4.. will be out soon 👍🏼
@@CodeXdev can't wait.
If you can touch topics like auth and deployment with serverpod It would be great.😁
Hello
I am planning to build an accounting app on Flutter with all the features and POS system, what do you think the best option? Can you give me an idea about it.
What is the state manager, I am thinking to go for RiverPod and I am planning to add offline feature as well, so what is the best options I have, can you please tell me
i have the same questions, did you find a suitable solution?
why not Frog dart ?
I just read about dart_frog package..
return Response(body: 'Welcome to Dart Frog!');
Looking at above line, i get the feeling that you need to handle everything yourself. There is no Session, no caching, no DB support.. just Dart Code as backend.
I might be wrong, but if you can share some more details it will be enlighting.
I havent tried this yet , but yes seems like thats for small projects yet , and require more stuff to be added
But it got some good hype , and on active development
For a single file small datt backend projects i used Alferd
Its one the fastest and simplest way to build a Backend in dart
I find dart Frog to be lightweight and gives room for bespoke architectures. I think it's like Laravel for php or Ruby on Rails for Ruby or Django for Python, but for Dart. Very cool stuff.
Seems interesting…..trying to find thumbnail in the middle of the screen😅
Coming soon.. stay tuned! 😍
PS C:\Users
ic\siragugal\siragugal_server> docker-compose up --build --detach
[+] Running 2/0
- Container siragugal_server-postgres-1 Running 0.0s
- Container siragugal_server-redis-1 Running 0.0s
PS C:\Users
ic\siragugal\siragugal_server>
PS C:\Users
ic\siragugal\siragugal_server> dart bin\main.dart
SERVERPOD version: 0.9.19 mode: development time: 2022-11-14 20:06:44.013043Z
2022-11-14 20:06:44.379985Z Failed to connect to database.
PostgreSQLSeverity.error 42P01: relation "serverpod_runtime_settings" does not exist
Just copy the contents of the pgsql files in the generated folder and execute in pgadmin(windows, linux, mac) or Postico(mac) just like at 6:17. I think at the moment only mac allows for auto execution on running dart bin/main.dart