☁️Java Web Application Deployment with CodeArts Guide

Alişan Abay
Huawei Developers
Published in
6 min readJul 2, 2024
CodeArts

Introduction

Hello everyone🙌, in this session I will introduce CodeArts, a highly significant service provided by Huawei Cloud.

CodeArts is an all-in-one platform that offers ready-to-use cloud services for requirement delivery, code commit, checking, building, verification, deployment, and release throughout the entire software lifecycle.

CodeArts consists of the following services:

  • CodeArts Req: Offers agile development teams easy and efficient coordination services, including multi-project management, agile iteration management, Kanban collaboration, requirement management, defect tracing, document management, an online Wiki, and statistical reports.
  • CodeArts Repo: Provides Git-based distributed code management and collaborative development capabilities, such as member management, permission control, code hosting, code checking, code review, code tracing, and continuous integration. It helps enterprises of various scales enhance R&D quality and efficiency.
  • CodeArts Pipeline: A pipeline service that allows you to visualize and customize your delivery process, improving both delivery efficiency and quality.
  • CodeArts Check: Facilitates static and security checks on code in multiple programming languages, providing comprehensive quality reports. It also allows you to view grouped defects with suggested fixes, effectively controlling quality and aiding in success.
  • CodeArts Build: An easy-to-configure platform supporting multi-language parallel builds on the cloud. Its distributed acceleration helps enterprises improve build efficiency and reduce overall costs, even at a large scale.
  • CodeArts Deploy: Supports deployment in hosts and containers using multiple languages and technology stacks, including Tomcat and Spring Boot. The plug-in encapsulation and orchestration of deployment functions enable quick and efficient software release.
  • CodeArts TestPlan: Covers the entire testing process, including test planning, test design, test cases, test execution, and test evaluation. It aims to assist enterprises with collaborative, efficient, and reliable testing activities before product release.
  • CodeArts Artifact: Manages source code build products, including Maven and npm. It seamlessly integrates with local build tools and on-cloud CI/CD, allowing for efficient management of the software package lifecycle to improve release quality and efficiency. CodeArts Artifact also provides artifact package version management, fine-grained permission control, and other key functions.
CodeArts Architecture

DEMO — Using CodeArts to Quickly Set Up a Project (ECS)

Step 1- Create ECS

This medium article, will help you purchase and log in to ECS:

☁️ECS-Cheatsheet / How to Purchase and Log In to a Linux ECS on HUAWEI CLOUD | by Mehmet Altuğ Akgül | Huawei Developers | Medium

Step 2- CodeArts Req

CodeArts Req presets multiple templates for Scrum, Kanban, IPD-system device, IPD-standalone software, and IPD-self-operated software/cloud service projects.

Scrum project is suitable for agile software development teams who uphold Scrum methodologies and practices.

So I selected Scrum.

Project Templates
Create Project

Step 3- CodeArts Repo

CodeArts Repo uses GitFlow as the basic working mode.

CodeArts Repo
  • Code can be read, modified, and committed online at anytime from anywhere.
  • Online branch management allows efficient concurrent development on multiple branches. You can create, change, and merge branches.
Select Repository Type

I chose the Template repository type because it has ready-made folders for writing code, and I selected the following option because I will be developing a Java web application.

Create Template Repository

Step 4- CodeArts Check

The cloud service and IDE plug-in are two forms of CodeArts Check. In addition, it provides a feature package with in-depth security check.

CodeArts Check

CodeArts Check uses certain functions. Since our project’s language is Java, it will use the Java code check function.

When we click the “Start Check” button, the function begins checking, allowing us to see whether our result has passed or not.

CodeArts Check Finished

Step 5- CodeArts Build

CodeArts Build offers an easy-to-use, cloud-based build platform that supports multiple programming languages, enabling efficient continuous delivery. With CodeArts Build, you can create, configure, and execute build tasks with just a few clicks. It also supports automated code retrieval, building, packaging, and real-time status monitoring.

CodeArts Build
Run CodeArts Build

Step 6- CodeArts Deploy

CodeArts Deploy

CodeArts Deploy offers the following features:

  • Supports host on both physical machines and virtual machines (VMs) as well as container deployment.
Basic Resources on Settings
Create Host Cluster
Add Target Host
  • Provides system templates, such as Tomcat, SpringBoot, and Django, to help you create tasks quickly. You can drag and drop atomic actions to flexibly orchestrate tasks.

In our project SpringBoot to help us create tasks.

Java Web Application Deploy
  • Supports multiple hosts in the environment simultaneously.
Create Environment
Import Host
Select HTTP ALT(8080)

To ensure our application functions correctly, we need to add the deployment port to the security group. Since our application will run on the web, we are enabling port 8080.

Finally, to test that our application is running on the web, we enter our EIP, specifically eip:8080, as the URL in the browser.

Application Run on the Web

Conclusion

In today’s article, we successfully created a project and repository in CodeArts, demonstrating the seamless integration and utilization of its comprehensive services. This step-by-step guide covered everything from setting up an ECS instance to deploying a web application using CodeArts’ suite of tools. By leveraging CodeArts Req for agile project management, CodeArts Repo for efficient code management, CodeArts Check for thorough code verification, CodeArts Build for streamlined building processes, and CodeArts Deploy for robust deployment, we showcased the efficiency and effectiveness of the platform.

References

--

--