- Install npm dependencies:
cd resource-api
npm install
- Generate Nexus & Prisma types:
npm run generate
- If developing with local postgres database, migrate types and generate schema:
npm run prisma:migrate
- Start development server:
npm run dev:watch
- Open up Graphql Playground: localhost:4000/graphql
- Run Prisma Studio to verify schema:
npm run prisma:studio
-
Make sure postgres is installed on your local machine
-
Create databes named "testing"
-
make sure to create "root" user with "superuser" permissions (or update TESTING_DB path in env)