Skip to content

Latest commit

Β 

History

History
112 lines (74 loc) Β· 2.64 KB

File metadata and controls

112 lines (74 loc) Β· 2.64 KB

how to initialy setup project (after cloning the project)?

  1. install neccecery dependency [npm i] on which side ur working(client or server);
  2. if ur working on server side setup .env file just like sample.env
  3. install an vsCode extention called "restore terminal"(to running script automatically)
  4. 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..

  1. do not make randome changes take a feature build it and make a PR with specific commit messege😁.

-------------Happy coding--------------------------

πŸš€ Git Workflow Guide

πŸ“Œ Branching Strategy

πŸ”Ή 1. Main Branches (Long-term)

  • main β†’ Stable, production-ready code (only merge tested code here).
  • develop β†’ Main development branch where features are integrated.

πŸ”Ή 2. Short-Term Branches (Temporary)

  • feature/<feature-name> β†’ For new features (branched from develop).
  • bugfix/<bug-name> β†’ For fixing non-critical bugs (branched from develop).
  • hotfix/<hotfix-name> β†’ For urgent production fixes (branched from main).

πŸ”„ Workflow Steps

πŸ› οΈ 1. Start Working on a Feature

git checkout develop
git pull origin develop
git checkout -b feature/new-dashboard

βœ… 2. Work on the Feature & Commit

git add .
git commit -m "Added dashboard UI"
git push origin feature/new-dashboard

πŸ”„ 3. Create a Pull Request (PR) to develop

  • Once reviewed & tested, merge into develop.

🐞 Bug Fix Workflow

πŸ”Ή 1. Create a Bugfix Branch

git checkout develop
git pull origin develop
git checkout -b bugfix/fix-login-issue

πŸ”Ή 2. Work on Fix & Push

git add .
git commit -m "Fixed login issue"
git push origin bugfix/fix-login-issue

πŸ”Ή 3. Merge into develop After Review

  • After testing, merge back into develop.

πŸ”₯ Hotfix Workflow (For Critical Fixes)

πŸ”Ή 1. Create Hotfix Branch from main

git checkout main
git pull origin main
git checkout -b hotfix/fix-payment-bug

πŸ”Ή 2. Apply Fix & Merge

git add .
git commit -m "Fixed payment issue"
git push origin hotfix/fix-payment-bug
  • Merge into main and tag a release
  • Also merge back into develop to keep them in sync

πŸ“Œ Best Practices

βœ… 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)