develop - main development branch
PLP-X - feature branch where X is the corresponding ticket number
Go to server:
yarn # to install dependencies
yarn dev # start the server in dev mode
Go to client:
yarn # to install dependencies
yarn codegen #to update type definitions
yarn dev # start the server
git pull origin/PLP-25 #DO NOT DO THIS
#OR
git pull # when you're in a feature branch locally
git push # when you are in develop branch locally
git checkout develop # switching to develop
git pull --rebase # pulling changes from develop
git checkout <feature_branch> # git checkout PLP-24
git rebase develop
## make your changes
git push --force # always do a force push after rebase
If server is already running in dev mode, save the codegen.yml file to regenerate types.
Alternatively, you can run yarn codegen
to generate types
To kill the port if EADDRINUSE error:
lsof -i TCP:PORT_NUMBER
kill PID
Checking the DB:
npx prisma studio
Generate prisma client
npx prisma generate
Migrate DB changes:
npx prisma migrate dev
For more info visit package.json in server & client.