https://github.com/rocicorp/todo-nextjs
Starter Todo App
https://github.com/rocicorp/todo-nextjs
Last synced: over 1 year ago
JSON representation
Starter Todo App
- Host: GitHub
- URL: https://github.com/rocicorp/todo-nextjs
- Owner: rocicorp
- License: apache-2.0
- Created: 2022-03-07T09:39:45.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-23T18:53:24.000Z (about 2 years ago)
- Last Synced: 2025-04-13T14:09:33.318Z (over 1 year ago)
- Language: TypeScript
- Homepage: replicache-todo.vercel.app
- Size: 1.6 MB
- Stars: 73
- Watchers: 7
- Forks: 35
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# todo-nextjs
A Replicache sample using Next.js/serverless/Supabase.
Also demonstrates:
- Global Version Strategy
- [Shared Mutators](https://doc.replicache.dev/howto/share-mutators)
- [Poke](https://doc.replicache.dev/byob/poke) via Supabase realtime notifications
Running live at https://replicache-todo-nextjs.vercel.app/
# Setup
- Create a new project at supabase.com. Take note of the database password when you setup.
- Set the following environment variables:
-
NEXT_PUBLIC_SUPABASE_URL: The "project URL" from the supabase project's dashboard. Looks like https://<id>.supabase.co, where `id` is the project's unique ID.
-
NEXT_PUBLIC_SUPABASE_ANON_KEY: The "API Key" from the supabase project. Accessible on project dashboard.
-
SUPABASE_DATABASE_URL: The database URL (e.g. postgresql://postgres.yourprojectid:yourpassword@aws-0-us-west-1.pooler.supabase.com:6543/postgres)
-
NEXT_PUBLIC_REPLICACHE_LICENSE_KEY: Your Replicache license key
npm run dev