Spring Boot Shopping Cart Web App: Project with git-repo, all files and steps
Building a Spring Boot Shopping Cart Web App: A Practical Guide
1. Creating VM Machines on AWS
In the initial phase of our journey, we set up a robust development environment on Amazon Web Services (AWS). This involved creating virtual machines to serve as the foundation for our project. The detailed steps and snapshots of required vm machines on AWS can be found below.
2. Kubernetes (K8s) Setup
With our VMs in place, the next step was to configure Kubernetes for efficient container orchestration. The steps for setting up K8s and joining nodes to the cluster are outlined.
https://github.com/imHarry404/Ekart/blob/main/k8s-setup.txt
3. Configuring Security Groups with Ports
Ensuring secure communication within our environment is paramount. We established security groups to control incoming and outgoing traffic, implementing port restrictions for enhanced safety.
4. Building Jenkins Pipelines for Success
Our Jenkins setup included defining pipelines to automate the build, test, and deployment phases. A successful pipeline is outlined in detail.
🛠️ 𝗣𝗶𝗽𝗲𝗹𝗶𝗻𝗲 𝗦𝘁𝗮𝗴𝗲𝘀:
𝗗𝗲𝗳𝗶𝗻𝗲 𝗧𝗼𝗼𝗹𝘀:
JDK, Maven, SonarQube - essential tools defined within our pipelines.
𝗖𝗼𝗺𝗽𝗶𝗹𝗲 𝘁𝗵𝗲 𝗖𝗼𝗱𝗲:
Transforming source code into executable binaries with precision.
𝗥𝘂𝗻 𝗨𝗻𝗶𝘁 𝗧𝗲𝘀𝘁𝘀:
Ensuring the integrity of the codebase with thorough unit testing.
𝗦𝘁𝗮𝘁𝗶𝗰 𝗖𝗼𝗱𝗲 𝗔𝗻𝗮𝗹𝘆𝘀𝗶𝘀:
Leveraging SonarQube for in-depth code quality assessments. 🔍
𝗩𝘂𝗹𝗻𝗲𝗿𝗮𝗯𝗶𝗹𝗶𝘁𝘆 𝗦𝗰𝗮𝗻:
A critical step! Scanning dependencies for potential vulnerabilities to fortify our code.
𝗕𝘂𝗶𝗹𝗱/𝗣𝗮𝗰𝗸𝗮𝗴𝗲 𝘁𝗵𝗲 𝗔𝗽𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗼𝗻:
Bringing our application to life with a robust build process.
𝗣𝘂𝗯𝗹𝗶𝘀𝗵 𝗔𝗿𝘁𝗶𝗳𝗮𝗰𝘁𝘀:
Storing our precious artifacts securely in Nexus for future use.
𝗕𝘂𝗶𝗹𝗱 & 𝗧𝗮𝗴 𝗗𝗼𝗰𝗸𝗲𝗿 𝗜𝗺𝗮𝗴𝗲:
Crafting Docker images and assigning meaningful tags.
𝗦𝗰𝗮𝗻 𝗖𝗼𝗻𝘁𝗮𝗶𝗻𝗲𝗿 𝗜𝗺𝗮𝗴𝗲𝘀:
Ensuring Docker images are free from vulnerabilities for a secure deployment.
𝗣𝘂𝘀𝗵 𝘁𝗼 𝗜𝗺𝗮𝗴𝗲 𝗥𝗲𝗽𝗼𝘀𝗶𝘁𝗼𝗿𝘆:
Safely storing our Docker images in a repository for accessibility.
𝗬𝗔𝗠𝗟 𝗠𝗮𝗻𝗶𝗳𝗲𝘀𝘁𝘀:
Crafting YAML manifest files for Kubernetes deployment - the heart of our scalable architecture.
𝗗𝗲𝗽𝗹𝗼𝘆 𝘁𝗼 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀:
The grand finale! Deploying our application to Kubernetes for efficient orchestration.
5. Exploring the Working Project Homepage
The heart of our endeavor is the fully functional Spring Boot Shopping Cart Web App. This section provides insights into the features, user experience, and the seamless integration of technologies. Explore the working project homepage
access it using node-ip:port (given in pipeline log)
then login using admin & admin
6. Nexus Repository Snapshots for Dependency Management
Efficient dependency management is crucial for a stable and reproducible build environment. We utilized Nexus Repository to store snapshots of project dependencies. Learn more about our Nexus Repository setup.
7. All Files Present on Repository
For your convenience, all the files associated with this project, including configurations, scripts, and code, are available in the project repository. You can access the repository and its contents
https://github.com/imHarry404/Ekart/tree/main
8. Image present on DockerHub
Conclusion
This blog post serves as a comprehensive guide through the process of building a Spring Boot Shopping Cart Web App. Feel free to explore the provided links and snapshots to gain a deeper understanding of each step in this exciting development journey. Happy coding!
Connect with me 😊
https://www.linkedin.com/in/imharry404/
Labels: aws aws cli linux devops, jenkins kubernetes eks, kubernetes aks devops
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home