Coding in Java for a Scrum Project
This section introduces how to code in Java for a Scrum project in CodeArts Repo.
Before performing the following operations, ensure that your have permissions to create projects and log in to the CodeArts homepage.
Steps
Procedure |
Description |
---|---|
Sign up for a HUAWEI ID, enable Huawei Cloud services, and complete real-name authentication. |
|
Subscribe to the CodeArts free package to prepare for Java code development in a Scrum project. |
|
You need to create a project and repository before managing repositories and code. |
|
Create a branch and develop code online. |
|
Create and merge an MR online. |
Preparations
- You have registered with Huawei Cloud. If you do not have a HUAWEI ID, create one by referring to Registering a HUAWEI ID and Enabling Huawei Cloud Services.
Enabling CodeArts Free Edition
- Go to the .
- Click Try Free, read and agree to the statement, and click Subscribe.
Note that:
- The free edition is valid for one month. If you do not renew, uncheck Auto-renew.
- You can purchase only one package.
- Check the subscription record on the CodeArts page.
Quickly Creating a Project and a Code Repository
- Log in to the CodeArts console, click
, and select a region.
- Click Access Service to go to the CodeArts homepage.
- Click Create Project, select Scrum as the project template, and enter basic project information.
- In the navigation pane on the left, choose Code > Repo. Click New Repository, choose Template > Java Maven Demo, enter a Repository Name, for example, Scrum_Test_JAVA, select Initial Settings, and set Visibility to Private.
- Click OK. The repository is created and the code page is displayed.
As shown in the following figure, the name of the new repository is Scrum_Test_JAVA. After the repository is created, the Code page is displayed.
Figure 1 Code page of the successfully created repository
Creating a Branch and a Code File
Create a branch and a code file. The procedure is as follows:
- Click Branches. On the branch page of the code repository, click Create Branch, and enter the Branch Name to create a branch based on the master branch. The code homepage is displayed.
- Choose Create > Create File. The homepage of the Create File is displayed.
- Enter a file name and select java from the text template drop-down list box on the right of the file name. The code file is created and the file list is displayed.
As shown in the following figure, the new branch name is Scrum_Test and the new file name is Scrum_Test_Text.java.
Figure 2 Scrum_Test_Text.java file created
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.