/vite-remix-electric-sql-starter

A starter for building local-first apps with ElectricSQL

Primary LanguageTypeScriptMIT LicenseMIT

vite-remix-electric-sql-starter

A starter for building local-first apps with ElectricSQL

Built with:

Demo

Screen.Recording.2023-11-14.at.2.32.27.PM.mp4

Install

  • npx git-scaffold@latest KyleAMathews/vite-react-router-electric-sql-starter#main new-electric-app

Usage

The starter includes some sample tables & code. You can either leave it to play with a simple example app or remove it to start from scratch.

To clean up the example code, run npm run cleanup-example-code and then make the following edits:

  • src/main.tsx to remove the example route components

You're now ready to start adding tables and routes.

Setup instructions

You need Docker/Docker Compose installed.

Run Postgres/ElectricSQL:

npm run backend:up

Start the dev server

npm run dev

Contributions welome!