how to initialy setup project (after cloning the project)?
- install neccecery dependency [npm i] on which side ur working(client or server);
- if ur working on server side setup .env file just like sample.env
- install an vsCode extention called "restore terminal"(to running script automatically)
- after completing above steps just restat vs code or mannualy run scripts to run app
-------------That's it ur good to go now ----------------
rules regarding PRs..
- do not make randome changes take a feature build it and make a PR with specific commit messege๐.
-------------Happy coding--------------------------
mainโ Stable, production-ready code (only merge tested code here).developโ Main development branch where features are integrated.
feature/<feature-name>โ For new features (branched fromdevelop).bugfix/<bug-name>โ For fixing non-critical bugs (branched fromdevelop).hotfix/<hotfix-name>โ For urgent production fixes (branched frommain).
git checkout develop
git pull origin develop
git checkout -b feature/new-dashboardgit add .
git commit -m "Added dashboard UI"
git push origin feature/new-dashboard- Once reviewed & tested, merge into
develop.
git checkout develop
git pull origin develop
git checkout -b bugfix/fix-login-issuegit add .
git commit -m "Fixed login issue"
git push origin bugfix/fix-login-issue- After testing, merge back into
develop.
git checkout main
git pull origin main
git checkout -b hotfix/fix-payment-buggit add .
git commit -m "Fixed payment issue"
git push origin hotfix/fix-payment-bug- Merge into
mainand tag a release - Also merge back into
developto keep them in sync
โ
Pull before you start (git pull origin develop)
โ
Use clear branch names (feature/login-page, bugfix/navbar-crash)
โ
Small, frequent commits instead of big ones
โ
Use Pull Requests (PRs) for code review
โ
Tag releases (git tag v1.0.0 && git push origin v1.0.0)