Skip to content

Instantly share code, notes, and snippets.

View rajgupta2's full-sized avatar
🎯
Focusing

Raj Gupta rajgupta2

🎯
Focusing
View GitHub Profile
@rajgupta2
rajgupta2 / set-up-and-work-with-Sonatype-Nexus.md
Last active April 21, 2025 05:20
How to set up and work with Sonatype Nexus in linux.

πŸ› οΈ How to set up and work with Sonatype Nexus

Whenever we package our application, the build artifact(jar,war,docker images,nuget etc.) is created. We store the build artifact in the Artifactory Repository Server so that it can be used for other application as dependency.
Ex- A shared logging library.


πŸ“¦ What is Sonatype Nexus?

Sonatype Nexus is an open-source artifact repository manager that allows you to host and manage artifacts like JARs (Maven), NPM packages, Docker images, and more.

@rajgupta2
rajgupta2 / How-to-set-up-and-work-with-SonarQube-Server.md
Last active April 19, 2025 06:16
πŸš€ This Gist covers how to setup and work with SonarQube Server in Remote server.

πŸ› οΈ How to set up and work with SonarQube Server

Before deploying our application on the production server, we checked the code quality of the application using quality profiles (collections of rules) in SonarQube. If the application's code passed the quality gate (a set of metrices or thresholds for bugs, vulnerabilities, code smells, and test coverage) then we proceeded to deployment.

πŸ“Œ What is SonarQube Server?

SonarQube server is an open-source platform for continuous inspection of code quality. It performs code analysis to detect bugs, code smells, vulnerabilities, and security issues across multiple programming languages. It integrates seamlessly into CI/CD pipelines and helps developers write cleaner, more maintainable code. SonarQube requires Java software so we also have to configure it.

Make sure you allow the 9000 port as sonarqube server run on 9000 port in Security Group

@rajgupta2
rajgupta2 / Build-Maven-Project-and-Deploy-on-Apache-Tomcat.md
Last active April 23, 2025 05:21
πŸš€ This Gist covers how to build and package the java web application using Maven, and how to deploy it on an Apache Tomcat server.

πŸ› οΈ How to build the java web application using Maven, and how to deploy it on an Apache Tomcat server

Let's understand some basic

What is Build?

It is a compilation process to compile all the source code and package it as a jar or war file. It removes all the uncessary code such as comments and spaces. It make the optimized version of source code.

What is Maven?

Maven is aka as Java Build tool, used to build and package the java application as jar or war file. It is also used to manage dependency. Java is required to run maven.

@rajgupta2
rajgupta2 / How-to-Set-Up-a-Load-Balancer-and-Scale-a-Server-on-AWS.md
Last active April 19, 2025 05:57
This gist provides a quick guide on how to set up a Load Balancer and implement scaling using AWS EC2 instances.

🌐 How to Set Up a Load Balancer and Scale a Server on AWS

This practicle demonstrates how to set up a Load Balancer and implement scaling using AWS EC2 instances. The goal is to ensure high availability and distribute incoming traffic across multiple servers.


🧠 Introduction

In this practicle, you will learn:

@rajgupta2
rajgupta2 / How-to-set-up-an-AWS-EC2-Virtual-Machine .md
Last active April 19, 2025 05:55
This gist show you how to set up an AWS EC2 Virtual Machine (VM).

πŸš€ How to Set Up an AWS EC2 Virtual Machine (VM)

Amazon EC2 (Elastic Compute Cloud) lets you launch and manage virtual servers in the cloud. This guide walks you through setting up a basic EC2 instance on AWS β€” perfect for beginners!


πŸ› οΈ Steps to Launch an EC2 Instance

1. Log In to AWS Console