Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 863 Bytes

File metadata and controls

26 lines (17 loc) · 863 Bytes

PowerSync + Capacitor Example

Example demonstrating the use of the PowerSync SDK for Capacitor together with a Capacitor App.

To see it in action:

  1. cd into this directory and run pnpm install.
  2. Copy .env.local.template to .env.local, and complete the environment variables. You can generate a temporary development token, or leave blank to test with local-only data.
  3. Run pnpm start.
  4. Open the localhost URL displayed in the terminal output in your browser.

iOS

To run the iOS version of the app run:

  1. pnpm build
  2. pnpm sync
  3. pnpm ios

Android

To run the Android version of the app run:

  1. pnpm build
  2. pnpm sync
  3. pnpm android (to see console run chrome://inspect/#devices in browser)