Skip to content

ShifaLabs/shifa

Repository files navigation

🛠 Shifa Repository: Team Setup & Contribution Guide

This guide outlines the workflow for collaborating on the Shifa project. Following these steps ensures code safety, organized branching, and a smooth review process.

Main Repository: https://github.com/ShifaLabs/shifa.git


1. Prerequisites

Before starting, ensure you have the following:

  • Git Installed: Download here
  • Terminal: Git Bash (Windows) or native Terminal (Mac/Linux).
  • Access: Ensure you have collaborator access to the Shifa repository.

2. Authentication (Setup SSH)

Recommended for secure, passwordless access to private repos.

  1. Generate Key: Open your terminal and run:
ssh-keygen -t ed25519 -C "your_email@example.com"
  1. Start Agent:
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
  1. Add to GitHub: Copy your key to clipboard:
cat ~/.ssh/id_ed25519.pub

Go to GitHub Settings → SSH and GPG keys → New SSH key and paste it. 4. Test Connection:

ssh -T git@github.com

3. Cloning & Branching Strategy

Step 1: Clone the Repo

git clone git@github.com:ShifaLabs/shifa.git
cd shifa

Step 2: Create Your Personal Branch

Never work directly on main or development. Always create a feature branch from development.

# Switch to development and get latest changes
git checkout development
git pull origin development

# Create your branch: <name>/<feature-description>
git checkout -b <yourname>/<feature-name>

_Example: git checkout -b sojib/video-call-feature_


4. Development Workflow

Step 3: Making Changes

Work on your feature, then stage and commit your changes using the mandatory format:

Type Prefix Description
New Feature [ADDED] Use when adding new files/logic.
Updates [MODIFIED] Use for bug fixes or logic updates.
Completion [DONE] Use when the entire feature is ready.

Example Commit:

git add .
git commit -m "[ADDED]: Implement video call feature using 100ms SDK"

Step 4: Pushing & Pull Requests

  1. Push to GitHub:
git push origin <yourname>/<feature-name>
  1. Open PR: Go to the GitHub repository → Pull RequestsNew Pull Request.
  • Base: development
  • Compare: your-branch-name
  1. Review: Wait for a maintainer to review and merge. Do not merge your own PR.

5. Staying in Sync

To avoid merge conflicts, regularly pull the latest code from development into your branch:

git fetch origin
git rebase origin/development

If conflicts occur, resolve them locally, then continue your work.


⚠️ Repository Rules

Important

  1. No Direct Commits: Never commit directly to main or development.
  2. Branch Preservation: Do not delete other members' branches.
  3. Feature Requirement: Every member must implement at least one complete feature (UI components like Navbars do not count toward technical marks).
  4. Local Testing: Ensure the app runs locally before pushing code.
  5. Clean History: Prefer rebase over merge to keep the git graph readable.

Happy Coding! If you run into issues, please reach out via the team WhatsApp.

About

Shefa is a web-based telemedicine platform that enables patients to consult verified doctors through real-time in-app video calls, receive digital prescriptions, and manage their healthcare remotely in a secure and professional environment. This is a deployable, production-grade system, not a demo or academic mock-up.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors