Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 685 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 685 Bytes

This is a repo for testing sharing one prisma schema between multiple microservice repos via git submodules. The main repo is here.

Setup

  1. Run yarn install to install dependencies
  2. Run git submodule update --init to initialize the subrepo "prisma" (which holds the schema)
  3. Copy .env.example to .env and fill in the DB string
  4. Run yarn run prisma:generate to generate prisma client

Updating submodule

  1. cd prisma (into the submodule)
  2. Fetch and checkout commit you want, or pull origin main
  3. cd .. (back to service repo)
  4. Commit /prisma (this will just update the commit reference in this repo)