# clone project
git clone git@github.com:ptessier/chunk.git# install the dependencies
yarn install# deploy the containers
docker-compose up -d# start the server
yarn startUpdate the database and the related files in database/init folder,
# update schema.prisma from the database
yarn prisma introspect# update the prisma client
yarn prisma generateUpdate schema.prisma file,
# create a migration
prisma migrate save --experimental# update the database with the migration
prisma migrate up --experimentalFinally, update the schema in database/init.
# dump a postgres docker container
docker exec [container-name] pg_dump -U postgres --schema-only --no-owner [db-name] > database/init/schema.sql