Skip to content
/ Replimix Public template

Example of Remix, Replicache + Drizzle ORM for local-first multiplayer fun!

License

Notifications You must be signed in to change notification settings

justinline/Replimix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

294bb27 Â· Jun 4, 2024

History

10 Commits
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024
Jun 4, 2024

Repository files navigation

Welcome to Replimix!

A small boilerplate app to get prototyping building local-first/multiplayer apps with Replicache and Remix.

This is built following the steps from: https://doc.replicache.dev/byob/intro but adapted for Remix/Drizzle. You can follow along there and reference this code to understand the steps to building it.

Local-first

We're jumping on the next availble local-first train to funsville! Read more about local first applications here: https://localfirstweb.dev/

This boiler plate is a local-first chat application where you can have low-latency chat with automatic syncing in the background. Data is primarily stored in the browser and synced using things called CRDT's (via replicache) to a postgres database.

Tech

Postgres db

  • You'll need docker installed on your system
  • Pull the docker postgres image docker pull postgres
  • Run the postgres db in a container docker run --name replimix-db -e POSTGRES_USER=docker -e POSTGRES_PASSWORD=docker -e POSTGRES_DB=postgres -p 5432:5432 -d postgres
  • Update your .env DATABASE_URL to point to your running db, see the example.
  • Apply the db migrations to your postgres db npx drizzle-kit migrate

Development

After your db is set up, you can run the Vite dev server:

npm run dev

Party!

You can access your localhost:5173 instance in multiple browsers/tabs/computers and watch changes get push/pulled in realtime 🥳

About

Example of Remix, Replicache + Drizzle ORM for local-first multiplayer fun!

Topics

Resources

License

Stars

Watchers

Forks

Languages