Skip to content

VigneshwaranSooriyamoorthy/SpringBootApplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpringBoot Application

This is a simple Spring Boot application prepared for basic learning purpose.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Java 8 or later [Currently I am using Java 17]
  • IDE (VS Code, IntelliJ, or any)

Installation

Key VS Code extension

  • Java Support
    • Language Support for Java(TM) by Red Hat
    • Project Manager for Java
    • Extension Pack for Java
    • Debugger for Java
    • Maven for Java
  • Spring Boot
    • Spring Boot Dashboard
    • Spring Boot Extension Pack
    • Spring Boot Tools
    • Spring Initializr Java Support
  • Testing
    • Cucumber
  • General
    • XML
    • IntelliCode
    • Code Runner
    • Prettier - Code formatter

Usage

  • Clone repository git clone https://github.com/VigneshwaranSooriyamoorthy/SpringBootApplication.git
  • mvn clean install to synchronize all dependencies, to skip tests mvn clean install -DskipTests
  • Open 'Spring Boot Dashboard' (VS Code)
  • Run 'demo' application
  • Navigate to http://localhost:8080 to access the webpage Welcome Page Application
  • Only for MS SQL Server - Make sure to enable TCP/IP protocol from SQl Server Configuration Manager Application

Product Structure

Backend

Frontend

Testing

Test Execution

  • As Java application
    • java -cp <classpath> com.example.demo.DemoApplicationTests
    • VS Code
      • Open the java file
      • Right click > Run Java OR Use 'Run | Debug' (Ctrl+Shift+D) Run Java application
    • IntelliJ
      • Open the java file
      • Use the runner button (Ctrl+Shift+F10) Run Java application
  • As JUnit
    • VS Code
      • Open the junit runner file
      • Use runner button OR 'Testing' sidebar Run Java application
    • IntelliJ
      • Open the junit runner file
      • Use the runner button (Ctrl+Shift+F10) Run JUnit tests
  • As Maven
    • mvn test
    • VS Code Maven Test
    • IntelliJ Maven Test
  • To debug a specific test scenario
    • VS Code
    • IntelliJ (Easy approach)
      • Use the 'Run Test' icon displayed near to the scenario

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published