- Copy or rename
packages/ponder/.env.exampletopackages/ponder/.env.local - Add your Alchemy key to
packages/ponder/.env.example - Start postgres locally
brew services start postgresql(MacOS & Linux only) - Run
psql postgres - Create a db
CREATE DATABASE caas_db;TheDATABASE_URLin.env.locallinks to thecaas_db - In a different terminal, run
yarn ponder:devand wait until this completes - Copy or rename
packages/nextjs/.env.exampletopackages/nextjs/.env.local - Add
NEXT_PUBLIC_PONDER_URL=http://localhost:42069topackages/nextjs/.env.local - Create the file
packages/nextjs/.env - Delete the
DATABASE_URLline frompackages/nextjs/.env.localand add it topackages/nextjs/.env