README.md
May 5, 2022 · View on GitHub
Ionic/Angular SQLite Synchronization App
angular-sqlite-synchronize-app
Ionic/Angular application demonstrating the use of the
@capacitor-community/sqlite
in the context of synchronization with a remote server datase by using the import/export JSON facilities
this app uses Capacitor3
Maintainers
| Maintainer | GitHub | Social |
|---|---|---|
| Quéau Jean Pierre | jepiqueau |
Installation
git clone https://github.com/jepiqueau/angular-sqlite-synchronize-app.git
cd angular-sqlite-synchronize-app
git remote rm origin
- then install it
npm install
- then go to the building process
npm run build
npx cap sync
npx cap sync @capacitor-community/electron
npm run build
npx cap copy
npx cap copy @capacitor-community/electron
the capacitor config parameters are:
"appId": "icom.jeep.app.ionic.angular.synchronize",
"appName": "angular-sqlite-synchronize-app",
Building Web Code
The @capacitor-community/sqlite is now implementing sqlite for Web Browsers using a companion Stencil component jeep-sqlite which itself is based on sql.js for in-memory and localforage for storing the database in an IndexedDB storage.
if you run
npm run serve
Building Native Project
Android
npx cap open android
Once Android Studio launches, you can build your app through the standard Android Studio workflow.
iOS
npx cap open ios
Electron
npx cap open @capacitor-community/electron
Test SQLite access
The @capacitor-community/sqlite tests are accessible directly at the home page.
Documentation
To use the @capacitor-community/sqlite, have a look to the documentation folder documentation sqlite
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Jean Pierre Quéau 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!