☁️Java Web Application Deployment with CodeArts Guide
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.
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:
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.
Step 3- CodeArts Repo
CodeArts Repo uses GitFlow as the basic working mode.
- 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.
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.
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 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.
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.
Step 6- CodeArts Deploy
CodeArts Deploy offers the following features:
- Supports host on both physical machines and virtual machines (VMs) as well as container deployment.
- 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.
- Supports multiple hosts in the environment simultaneously.
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.
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.