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 installRun:
npm run devOpen localhost:5174.
Run:
npm run buildThis generates a built site in ./dist that you can use as the base directory for a deployment.