Ionic React SQLite - Working With Ionic Framework And Capacitor

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ก.ย. 2024
  • Ionic React SQLite - Working With Ionic Framework And Capacitor
    #ionic #react #sqlite
    I delve into integrating the Capacitor SQLite plugin with Ionic and React. I share my experience with the plugin's documentation and sample applications and explain why I used simple API calls instead of React hooks. I also provide insights into the installation process, including using the Ionic Visual Studio Code plugin and copying the SQL Wasm file. If you're interested in making the plugin work on the web, I also cover that topic. So, join me as we explore the ins and outs of integrating the Capacitor SQLite plugin with Ionic and React! Don't forget to like, subscribe, and let's get started!
    /// Sign Up For Our Newsletter​ buff.ly/3lAk2jL
    💥 Source Code - github.com/aar...
    💥 Vue Video with more detail on the setup - • Ionic Vue SQLite With ...
    💥 Links
    --------------------------
    Ionic Visual Studio Code Plugin - marketplace.vi...
    Ionic React - ionicframework...
    Capacitor - capacitorjs.com/
    SQLite Plugin - github.com/cap...
    #ionicframework #vuejs #ionic #tutorial

ความคิดเห็น • 24

  • @gabrielamaralpassos9537
    @gabrielamaralpassos9537 4 หลายเดือนก่อน

    There's just a little problem i'm facing that when i make more inserts in the same page, i have to chained useEffects or it just doesn't work. Not quite sure why still. I just observed this when building to Android by now, when using it in the browser it works fine.

  • @wsajjadh
    @wsajjadh 11 หลายเดือนก่อน +1

    This is what I am looking for

    • @AaronSaundersCI
      @AaronSaundersCI  11 หลายเดือนก่อน +1

      Glad it was helpful, please like, subscribe and share

  • @thepudgealicious
    @thepudgealicious 8 หลายเดือนก่อน

    Quick question with create connection.. If i have database versioning, would i have to input the latest version number instead of one, or is this handled? If so would store the latest version elswhere or grab it via a different connection first?

  • @prenaysaidiska9603
    @prenaysaidiska9603 ปีที่แล้ว

    good explanation perfectyle understood , can u plzz make a video with same Ionic React SQLite - Working With Ionic Framework And Capacitor using how to register user and login by generating tokens

    • @AaronSaundersCI
      @AaronSaundersCI  ปีที่แล้ว

      thanks for coming through, appreciate it and please sub if you haven't yet. Are you trying to authenticate on the local device?

    • @prenaysaidiska9603
      @prenaysaidiska9603 ปีที่แล้ว

      @@AaronSaundersCI thankyou for the reply . yes i want to authenticate user registration and login using jwt tokens store in localstorage with the help of ionic sqlite capacitor in reactjs

  • @sanatansam8424
    @sanatansam8424 10 หลายเดือนก่อน

    Is there a sample sqlite integration with ionic and angular, i.e. for the sqlite wasm integration ?

    • @AaronSaundersCI
      @AaronSaundersCI  5 หลายเดือนก่อน

      I have one for react that I am working on, will post something soon

  • @RoseMiller-tv9jz
    @RoseMiller-tv9jz ปีที่แล้ว

    hi! will you please make a similar thing with Angular??

  • @shafiqciku
    @shafiqciku 10 หลายเดือนก่อน

    Where does the db in this project stored?sqlite file (.db)

  • @davisdimalen3912
    @davisdimalen3912 ปีที่แล้ว

    Hi. I'm a getting a CapacitorSQLitePlugin: null error.

    • @davisdimalen3912
      @davisdimalen3912 ปีที่แล้ว

      it happens when I call your custom hook useSQLiteDB

    • @AaronSaundersCI
      @AaronSaundersCI  ปีที่แล้ว

      Does the source code I provided work? If you are have an error, you will need to reproduce it in a minimal project, thanks

  • @AaronSaundersCI
    @AaronSaundersCI  ปีที่แล้ว

    *SOURCE CODE* - github.com/aaronksaunders/ionic7-react-sqlite

  • @fuwamage1290
    @fuwamage1290 11 หลายเดือนก่อน

    All works in browser, but why in real android device not working?

    • @AaronSaundersCI
      @AaronSaundersCI  11 หลายเดือนก่อน

      Did you download the code from the original project and run it? You can see from the repo there is an android folder so I know it was tested and running on device… did you watch the entire video you might have missed something

    • @fuwamage1290
      @fuwamage1290 11 หลายเดือนก่อน

      I found the problem. It's because I didn't put the loadData() function in a useEffect (I put it in IonViewWillEnter). thank you anyway.

    • @AaronSaundersCI
      @AaronSaundersCI  11 หลายเดือนก่อน

      @@fuwamage1290 glad you got it working

  • @divpolitics9520
    @divpolitics9520 ปีที่แล้ว +2

    Thank you, the documentation is a hot mess

    • @AaronSaundersCI
      @AaronSaundersCI  ปีที่แล้ว

      I think they are just trying to do way to much in one sample app and assuming a lot of domain knowledge

    • @aksharparmar6599
      @aksharparmar6599 5 หลายเดือนก่อน

      @@AaronSaundersCI yes Documentation of sqlite needs to improve. I'm having a hard time doing task