Development Guides
Application Guide/ Team Workflow Guide
Section titled “Application Guide/ Team Workflow Guide”This section explains how to contribute to the project, including setup, workflow, and coding standards.
Clone the repo
Section titled “Clone the repo”- git clone https://github.com/2663211/Clubs-Connect.git
- cd Clubs-Connect
Install dependencies
Section titled “Install dependencies”- npm install
Create a feature/fix branch
Section titled “Create a feature/fix branch”- git checkout -b feature/
Code with VS Code
Section titled “Code with VS Code”- Auto-lint & format on save with ESLint + Prettier.
Run lint & format checks
Section titled “Run lint & format checks”- npm run lint
- npm run format:check
Commit using Conventional Commits
Section titled “Commit using Conventional Commits”- git add .
- git commit -m “feat(auth): add login functionality”
Push branch & open Pull Request
Section titled “Push branch & open Pull Request”- git push origin feature/
- Merge after approval and passing CI.
Git + PR Workflow Diagram
Section titled “Git + PR Workflow Diagram”graph LRA[Clone Repo] --> B[Create feature branch]B --> C[Code & Format on Save]C --> D[Run npm run lint & format:check]D --> E[Commit using Conventional Commits]E --> F[Push branch & open PR]F --> G[CI runs & Review]G --> H[Merge to main after approval]Testing Guide
Section titled “Testing Guide”Automatic Tests
Section titled “Automatic Tests”Automatic tests are done using the React Testing Library and Jest as the test runner.
Writing Test Files
Section titled “Writing Test Files”- Test files should be saved with a
.test.jsor.spec.jsextension so the test runner can detect them.
Installing Jest
Section titled “Installing Jest”Before running tests, install Jest in your project:
npm install --save-dev jestRunning Tests
Section titled “Running Tests”Once tests are written and Jest is installed, run the tests with:
npm run testDocumentation Guide
Section titled “Documentation Guide”To make changes to the document
- cd terrestrial-trappist
- npm run dev
Git Workflow Guide
Section titled “Git Workflow Guide”To make sure the main branch always works and stays clean, we followed these steps when contributing.
Get the latest code
Section titled “Get the latest code”Always start by syncing your local repo with GitHub.
git checkout maingit pull origin mainCreate your own branch
Section titled “Create your own branch”Work on a new branch for your feature, bug fix, or update.
git checkout -b feature/my-featureDo your work
Section titled “Do your work”- Add / edit / delete files.
- Save and test your changes locally.
- Commit often with meaningful messages(refer to git methodology).
git add .git commit -m "Add login form with validation"Keep your branch up-to-date
Section titled “Keep your branch up-to-date”Before pushing, always pull the latest main and merge/rebase into your branch.
git checkout maingit pull origin maingit checkout feature/my-featuregit merge mainPush your branch
Section titled “Push your branch”Push your changes to GitHub.
git push origin feature/my-featureOpen a Pull Request (PR)
Section titled “Open a Pull Request (PR)”- Go to GitHub.
- Open a Pull Request from your branch → main.
- Wait for teammate responsible for main to review and merge it.