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:
- Install Postgres.
- Create a database for replicache-todo to use, i.e.,
psql -d postgres -c 'create database todo'
- Launch replicache-todo like
DATABASE_URL=<database-connection-string> npm run dev