Skip to content

electric-sql/standalone-basic-example

Repository files navigation

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.

About

This is a basic, standalone ElectricSQL example web app.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published