Skip to main content

Local Postgres

By default the starter app backend stores data in memory using pg-mem. This is convenient during development, but you may also want to test against a real Postgres sometimes.

To do so:

  1. Install Postgres.
  2. Create a database for replicache-todo to use, i.e., psql -d postgres -c 'create database todo'
  3. Launch replicache-todo like DATABASE_URL=<database-connection-string> npm run dev