Skip to main content

Setup

Replicache is framework agnostic, and you can use most any libraries and frameworks you like.

We're going to use Next.js for this sample app, just because it's a convenient way to build a monorepo JavaScript-based web app.

Create an empty Next.js project:

npx create-next-app chat
cd chat

Install Replicache and a few other utilities we'll use for this sample:

npm install replicache replicache-react nanoid pg-promise pusher pusher-js

Next

Next, we'll design our Client View – the schema for our client-side data.