This is a basic, standalone ElectricSQL example web app, using the @electric-sql/react
bindings.
You need an Electric sync service running and to set the VITE_ELECTRIC_URL
environment variable pointing to it, e.g.:
VITE_ELECTRIC_URL='https://my-electric-service.example.com'
Your Electric should be connected to a Postgres instance with an items
table.
Run:
npm install
Run:
npm run dev
Open localhost:5174.
Run:
npm run build
This generates a built site in ./dist
that you can use as the base directory for a deployment.