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

Комментарии • 66

  • @rafante2
    @rafante2 6 месяцев назад

    MINDBLOWING!!!!!!!!!! I'M GONNA FAINT! Amazing! I loved this ServerPod!!!

  • @bilalsimsek7306
    @bilalsimsek7306 6 месяцев назад

    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.

    • @CodeXdev
      @CodeXdev  6 месяцев назад

      Much appreciated 😍 and thanks for valuable feedback

  • @allhzzenmiserable2295
    @allhzzenmiserable2295 Год назад +3

    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

  • @user-oc8hz8ud9e
    @user-oc8hz8ud9e Месяц назад

    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

  • @imgroot90
    @imgroot90 Год назад

    more Serverpod tutorials plz, thanks, big fan from China

  • @BihariVibes07
    @BihariVibes07 Год назад +2

    Finally 🔥😍

  • @tanphuocly8043
    @tanphuocly8043 3 месяца назад

    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.

  • @evandertorressaavedra
    @evandertorressaavedra Год назад +4

    How does serverpod deal with nested objects(joins) ?

    • @CodeXdev
      @CodeXdev  Год назад +1

      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.

  • @gauthamnadar6537
    @gauthamnadar6537 Год назад +3

    Excellent video, does serverpod support OAuth 2.0?

  • @rise4gamers506
    @rise4gamers506 Год назад

    good explanation

    • @CodeXdev
      @CodeXdev  Год назад

      Thanks! Keep watching

  • @aitrancong1003
    @aitrancong1003 Год назад

    works perfectly, thank you

  • @JonnyS569
    @JonnyS569 Год назад

    What should i do if a am on Windows and can't use Postico

  • @mmkamal
    @mmkamal Месяц назад

    Protocol (Folder/Directory) has been renamed to Models.
    Good luck developers

  • @faisalhidayat8404
    @faisalhidayat8404 Год назад +2

    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

    • @CodeXdev
      @CodeXdev  Год назад

      Check this:
      docker-compose is successfully executed and both postgres and redis is Running/Started

    • @jayamuruganj5091
      @jayamuruganj5091 Год назад

      am facing the same prb is there any solution?

    • @derekalves7512
      @derekalves7512 Год назад

      i have the same problem, anyone solve this?

    • @tehseenkhan6962
      @tehseenkhan6962 Год назад

      run \setup-tables.cmd on terminal and then detach docker

    • @charlesifoegbu
      @charlesifoegbu Год назад

      @@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

  • @leonardoalamavilca2182
    @leonardoalamavilca2182 Год назад

    thanks a lot!!! so nice reverb

  • @hiraazeem4183
    @hiraazeem4183 3 месяца назад

    postico is for mac what will we use for windows?

  • @adnanhaider9949
    @adnanhaider9949 Год назад +1

    what about window user are they also download postico?

  • @user-wd5vx8nu2y
    @user-wd5vx8nu2y Год назад +1

    Please tell us how to uninstall Serverpod.

  • @333PerezJuan
    @333PerezJuan Год назад

    Excelent! thank you for sharing bro

    • @CodeXdev
      @CodeXdev  Год назад

      Great! Flutter part of this video coming tomorrow.. 😍

  • @jannray_dev
    @jannray_dev 11 месяцев назад

    alternative for potico? im using windows

  • @masterpro1222
    @masterpro1222 Год назад

    Works well!! DANKEEE

  • @FarhadEs
    @FarhadEs Год назад

    Does it not work in Windows? postico

  • @bluyetiinc7553
    @bluyetiinc7553 Год назад

    Excellent Video.

    • @CodeXdev
      @CodeXdev  Год назад

      Thank you very much!

  • @aroobae456
    @aroobae456 Год назад

    I tried doing same, but it gives the error:
    my command: serverpod create myProj
    Usage: serverpod [arguments]

    • @aroobae456
      @aroobae456 Год назад

      nevermind got it resolved
      Fix: project name should not have capital letter

  • @bloodcon7014
    @bloodcon7014 Год назад

    I always get authentication faild with postgresql due to password

  • @aroobae456
    @aroobae456 Год назад

    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"

    • @CodeXdev
      @CodeXdev  Год назад

      You may try restarting the instance of docker, this trick always work 😅

  • @marcubale
    @marcubale Год назад

    can it handle big projects with many users?

  • @vuquangngoc
    @vuquangngoc Год назад

    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....

  • @rec-trick
    @rec-trick Год назад

    how to make many to many ?

  • @mdadnanullah497
    @mdadnanullah497 Год назад

    How can I add "server folder" and "client folder" on an existing flutter project?

    • @CodeXdev
      @CodeXdev  Год назад +3

      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.

  • @Tech1st
    @Tech1st Год назад

    Nice

  • @bloodcon7014
    @bloodcon7014 Год назад

    Shold i install postgresql on windows first

  • @harshgupta-ud9di
    @harshgupta-ud9di Год назад

    It's is possible to connect mongodb

    • @mobtereststudio
      @mobtereststudio Год назад

      Currently it seems Serverpod was tailored to support Postgresql. Maybe things will change in future versions.

  • @srirammacha
    @srirammacha Год назад

    Bro there is another video in this serverpod playlist when will u release that?

    • @CodeXdev
      @CodeXdev  Год назад

      Which video? Currently it has 3 video

    • @srirammacha
      @srirammacha Год назад

      @@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.

    • @CodeXdev
      @CodeXdev  Год назад

      That’s weird, I can see 4 videos count but it’s actually 3.
      Never mind, working on part 4.. will be out soon 👍🏼

    • @srirammacha
      @srirammacha Год назад

      @@CodeXdev can't wait.
      If you can touch topics like auth and deployment with serverpod It would be great.😁

  • @commie563
    @commie563 Год назад +2

    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

    • @salimtabetaoul7467
      @salimtabetaoul7467 Год назад

      i have the same questions, did you find a suitable solution?

  • @rohitsangwan4803
    @rohitsangwan4803 Год назад

    why not Frog dart ?

    • @CodeXdev
      @CodeXdev  Год назад

      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.

    • @rohitsangwan4803
      @rohitsangwan4803 Год назад

      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

    • @mobtereststudio
      @mobtereststudio Год назад

      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.

  • @Aali.258
    @Aali.258 Год назад

    Seems interesting…..trying to find thumbnail in the middle of the screen😅

    • @CodeXdev
      @CodeXdev  Год назад +2

      Coming soon.. stay tuned! 😍

  • @jayamuruganj5091
    @jayamuruganj5091 Год назад +1

    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

    • @charlesifoegbu
      @charlesifoegbu Год назад

      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