rocicorp / todo-nextjs

Starter Todo App
replicache-todo.vercel.app
Apache License 2.0
70 stars 33 forks source link

todo-nextjs

A Replicache sample using Next.js/serverless/Supabase.

Also demonstrates:

Running live at https://replicache-todo-nextjs.vercel.app/

Setup

  1. Create a new project at supabase.com. Take note of the database password when you setup.
  2. 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
  3. npm run dev