Skip to content

FAHADSUST/AvengersParserSpringBoot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avengers Parser

A Spring Boot application that parses country-to-HQ and contact data from .txt files and preloads lookup and superhero tables.

Requirements

  • Java JDK 17 or later (tested with Java 21)
  • Maven (for dependency management)
  • IntelliJ IDEA Community Edition (for running the project)

Project Structure

AvengersParser/
├── pom.xml
├── README.md
├── data/               //Input data
│   ├── country_hq.txt        
│   └── contacts/             
│       ├── Aircraft-Headquarter.txt
│       └── ...
└── src/
└── main/
├── java/
│   └── com/avengers/avengers_fe/
│       ├── AvengersFeApplication.java
│       ├── controller/
│       │   └── DashboardController.java
│       ├── model/
│       │   ├── CountryHQ.java
│       │   └── ContactTable.java
│       ├── service/
│       │   └── DataLoaderService.java 
│       └── utils/
│           └── Utils.java
└── resources/
   ├── application.properties
   └── templates/
   │  ├── index.html
   │  ├── lookup.html
   └── superhero.html

How to Run

  1. Import the Project:

    • Open IntelliJ IDEA Community Edition.
    • Click File > Open... and select the pom.xml file in the project root. IntelliJ will import the project as a Maven project.
  2. Build the Project:

    • IntelliJ should automatically download the required dependencies.
    • You can build the project by clicking Build > Build Project.
  3. Run the Application:

    • Locate the main class: AvengersFeApplication.java (under com.avengers.avengers_fe).
    • Right-click on the file and select Run 'AvengersFeApplication'.
    • The application will start on port 8080.
  4. Access the Endpoints:

Notes

  • Configuration:
    The Thymeleaf templates are located in src/main/resources/templates. The view resolver is configured in application.properties.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published