Skip to main content

Basic example

See the basic web example running online using the SQLite driver at basic-items.electric-sql.com and using PGlite at basic-items-pg.electric-sql.com/.

Basic example sreenshot

It's a basic app running in the web browser using wa-sqlite or PGlite. You can also open in your mobile browser by scanning this QR code:

Source code

Clone the monorepo:

git clone https://github.com/electric-sql/electric

Change into the web-wa-sqlite example directory for the wa-sqlite version:

cd electric/examples/web-wa-sqlite

Follow the instructions in the README.md and see the page here on running the examples.

Alternatively the web-pglite example directory contains the PGlite version:

cd electric/examples/web-pglite