Skip to content

raymosun/prisma-multirepo-service-a

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published