This repository contains sample code for Replicache. The example uses the react framework with a common express server backend. The backend utilizes the replicache-express library which implements the push
, pull
, poke
, createSpace
, and spaceExists
handlers required for Replicache sync protocol. This library intends to help developers easily experiment with Replicache and are experienced using the react and express frameworks.
$ npx replicache get-license
$ export VITE_REPLICACHE_LICENSE_KEY="<your license key>"
$ npm install; npm run build;
$ npm run watch --ws
Provides an example integrating replicache with react in a simple todo application.
A render blueprint example is provided to deploy the application.
Open the render.yaml
file and add your license key
- key: VITE_REPLICACHE_LICENSE_KEY
value: <license_key>
Commit the changes and follow the direction on Deploying to Render /client /shared /server package.json