Skip to main content

Command Palette

Search for a command to run...

Because Console.log('Hello') Wasn’t Complicated Enough

Updated
•2 min read•View as Markdown
Because Console.log('Hello') Wasn’t Complicated Enough
A

I am a passionate full-stack web developer with expertise in designing, developing, and maintaining scalable web applications. With a strong foundation in both front-end and back-end technologies, I specialize in creating dynamic user experiences and robust server-side solutions. Proficient in modern frameworks like React, Angular, Node.js, and Django, I thrive on crafting efficient, clean code and optimizing performance. Whether building RESTful APIs, designing responsive interfaces, or deploying applications to the cloud, I bring a results-driven approach to every project.Let me know if you'd like to customize it further, perhaps including your specialties or experience level!

  • Description :

Okay, Let’s be real I tired out JavaScript and tired out Java previously in my LinkedIn series of DSA. But now writing code JavaScript code make me too bored to be honest.

So, for backend code I thought to write to back with Java… no no no not Java. Let’s start with a Java based Backend framework that is highly scalable and high in efficiency.

In this part We are going to write production (Industry) grade , “Hello-World” in Spring Boot.


  • Dependency :

To write “Hello World” controller in Spring Boot .We first have to setup Spring boot application. So here is the multi-step process for making it :

  1. Install JDK in OS.
  1. Go to this Website.

  2. Configure this settings

  1. Click on generate .

  2. Unzip the Zip file.

  3. Open it in the VS code.


  • Writing ‘hello ayush’ :

  1. Seeing the Boilerplate :

    So, if you open src → main → java → com → ayush → quickstart. You can see

    In there you will see the code ie.

package com.ayush.quickstart;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class QuickstartApplication {

    public static void main(String[] args) {
        SpringApplication.run(QuickstartApplication.class, args);
    }

}
  1. Making Helloayush.java:→

In which We have to write code . In this part or in this file We have to write the code .

package com.ayush.quickstart;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Helloayush {

    @GetMapping(path = "/hello")
    public String helloworld() {
        return "hello world";
    }
}

  • Running the Code :

If the codebase has MVNW then We can run this command .

./mvnw spring-boot:run

  • Seeing the Output :

So, After Writing the bash command in the terminal. We will see the output in the chrome at http://localhost.com/8080/hello. And here is a quick start to Spring Boot and from here. Your enterprise-grade Backend from “Hello World” is ready.


CTA :


More from this blog

A

Ayush Labs

54 posts

A publication by Ayush sharing timeless insights on full-stack development, clean code, and thoughtful engineering—bridging classic techniques with modern web technologies.