Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Case Study - Branching & Git Case for Young Coders Club (Havas CX)

NotificationsYou must be signed in to change notification settings

devisasari/branching-and-git-case

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

  • This is the Branching & Git Case, a project given by the Young Coders Club (Havas CX).

About Case Study

You are leading a team where you should build awebsite for an e-commerce company. 2 teams areworking in different parts of the code development,separated as frontend and backend. The companydecides to have all the development in onerepository. They provided 3 environments calleddev, staging and production. They would like toknow how branching strategy will work and howshould the CI/CD be set up? (i.e which branchesshould be connected to the environments)

Completion of Case

Branching Strategy

  1. Create a ‘master’ branch in the repository. Thisbranch will be used to deploy the code to theproduction environment.
  2. Create a ‘dev’ branch in the repository. Thisbranch will be used to deploy the code to thedevelopment environment.
  3. Create a ‘staging’ branch in the repository. Thisbranch will be used to deploy the code to thestaging environment.
  4. Create a ‘feature’ branch for each feature thatyou are developing. This branch should bebranched off from the ‘dev’ branch.
  5. When a feature is complete, it should be mergedinto the ‘dev’ branch.
  6. When the code is ready for testing, it should bemerged into the ‘staging’ branch.
  7. When the code is ready for release, it should bemerged into the ‘master’ branch.

CI/CD Setup

  1. Set up a Continuous Integration (CI) server tomonitor the repository.
  2. Set up a Continuous Delivery (CD) server todeploy the code to the different environments.
  3. Set up rules to deploy the code to the differentenvironments.
  4. Set up automated tests to ensure that the code isof high quality.
  5. Set up automated alerts to notify the team of anyissues.

Examples

a. The ‘master’ branch should be connected to theproduction environment.

b. The ‘staging’ branch should be connected to thestaging environment.

c. The ‘dev’ branch should be connected to thedevelopment environment.

About

Case Study - Branching & Git Case for Young Coders Club (Havas CX)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp