-
Notifications
You must be signed in to change notification settings - Fork 0
Developer Wiki
This guide outlines the Git strategy and best practices for managing branches, commits, and pull requests (PRs) in our development workflow.
-
master
: This branch is reserved for releases. Only production-ready code should be merged here. -
develop
: The main branch for ongoing development. All feature branches should be merged intodevelop
.
-
Feature Branches: Created for new tasks and enhancements. Branch names follow the convention:
feature/FE-15-Cars-Assignment-For-Admin
. -
Bugfix Branches: Created for fixing bugs. Branch names follow the convention:
bugfix/FE-15-Cars-Assignment-For-Admin
.-
Branch Naming Conventions:
-
Prefix:
-
FE
: Frontend-related task. -
BE
: Backend-related task. -
DB
: Database-related task. -
DO
: DevOps-related task.
-
-
Task Type:
-
feature
: For new features or user stories. -
bugfix
: For bug fixes.
-
- Task Number: Each branch should include the task number and a brief description of the task.
-
Example:
feature/FE-15-Cars-Assignment-For-Admin
-
Prefix:
-
Branch Naming Conventions:
-
Quick Wins: For small tasks or bugfixes that involve a few lines of code, branch names can include multiple task numbers:
bugfix/FE-15_16_18_20-Quick-Wins-Car-Assignment-and-Admin-Panel
-
Create a Branch: For each task or bug, create a new branch from
develop
. -
Rebase Regularly: If
develop
changes while working on your branch, rebase your branch onto the latestdevelop
and resolve any conflicts locally. -
Force Push: After rebasing, use a force push (
git push -f
) to update your branch.
-
Create a PR: Once your task is complete, create a PR to merge your branch into
develop
. - Link to Task: Include links to the relevant task(s) in the PR description.
- Code Review: Every PR must be reviewed before merging. Ensure that the reviewer checks out the branch locally if needed.
-
Merge and Update Status: Upon approval and merging, move the task to the
Done
column in GitHub. If it was the last task in a user story, move the story toDone
as well.
-
Commit Message Format:
[TaskID]: Brief description of the task
-
Example:
[15]: Cars Assignment for Admin
-
Task Status:
-
In Progress
: When work begins. -
In Review
: When the PR is ready for review. -
Done
: After the PR is merged.
-
- Always keep an eye on changes in the
develop
branch and rebase your branch as necessary to stay up to date. - Reviewers should test branches locally where applicable.
- Always check your code quality with such tools as sonar, prettier.
-
Run docker-compose.yml:
-
Check if containers started successfully:
-
Enter
http://localhost:5050/browser/
-
Login with
admin
-
Press
Add New Server
-
Enter any Name under General tab:
-
Configure Connection tab:
-
Press save, now you have access to db.
-
Press this button to start the backend app:
-
Navigate to the frontend app project in terminal:
cd frontend
- If you are running frontend app for the first time, you need to install dependencies:
npm install
- Start Angular app:
ng serve
or, if you do not have angular installed:
npm run start
- Open the app. Navigate to the following address:
http://localhost:4200/
- Before each commit run following command (formats code styling):
npm run prettier
Also run follwoing command:
npm run lint
This will show all your code errors. Frontend pipeline may fail because of them.