Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 808 Bytes

README.md

File metadata and controls

41 lines (25 loc) · 808 Bytes

Electric basic example

This is a basic, standalone ElectricSQL example web app, using the @electric-sql/react bindings.

Pre-reqs

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.

Install

Run:

npm install

Develop

Run:

npm run dev

Open localhost:5174.

Build

Run:

npm run build

This generates a built site in ./dist that you can use as the base directory for a deployment.