Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

sarthakagrawal927/EasyLOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

EasyLOR

Branches

develop - main development branch

LOR-X - feature branch where X is the corresponding ticket number


Project Setup

Go to client:

yarn # to install dependencies
yarn dev # start the server

Go to server:

yarn # to install dependencies
npx prisma generate # updating prisma types in client
npx prisma migrate dev # updating prisma types in the database
yarn dev # start the server

Update your feature branch with remote changes [IMPORTANT]


NEVER PULL CHANGES FROM YOUR REMOTE FEATURE BRANCH

git pull origin/LOR-25 #DO NOT DO THIS
        #OR
git pull # when you're in a feature branch locally

DO NOT PUSH TO THE DEVELOP BRANCH

git push # when you are in develop branch locally

COMMANDS TO BE USED

git checkout develop # switching to develop
git pull --rebase # pulling changes from develop
git checkout <feature_branch> # git checkout LOR-24
git rebase develop
## make your changes
git push --force # always do a force push after rebase

Generating types in server

If server is already running, save the codegen.yml file to regenerate types


Debugging

To kill the port if EADDRINUSE error:

lsof -i TCP:PORT_NUMBER
kill PID

Checking the DB:

npx prisma studio

Regenerating DB:

npx prisma migrate

For more info visit package.json in server & client.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages