A web application designed for users to analyze HTML web pages.
925
A web application designed for users to analyze HTML web pages. It features a user-friendly interface where users can input an HTML page URL and submit it. The application then processes the URL and presents the analysis results in a clear, tabular format.
Follow these steps to set up and build the project on your local machine.
This project is built using the following tools. Please make sure you meet the prerequisites listed below.
1. JDK 17 or above
2. Maven 3.6.3 or above
This project utilizes the following open-source libraries, frameworks, and plugins.
1. Spring Boot Maven plug-in 1.5.7.RELEASE
2. Jsoup 1.17.2
3. Guava:33.2.1-jre
4. Pagination.js 2.0.8
Clone and run the project using below commands.
git clone https://github.com/weshare237/html-web-page-analyzer.git
If you are using an IDE such as IntelliJ, import the project and select the pom.xml file. For further details, you can visit this guide.
Use the following command to execute the automated test suite.
mvn test
Use the following command to build the project and run it from the project's root directory. The project will be built and executed in an embedded Tomcat instance.
mvn spring-boot:run
If the build is successful, you will see something similar to this in the console:
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v3.3.1)
2024-06-28T18:16:15.624+01:00 INFO 28103 --- [ main] com.affinitysquare.WebPageAnalyzer : Starting WebPageAnalyzer using Java 20.0.1 with PID 28103 (/home/fkd/Videos/demo/target/classes started by fkd in /home/fkd/Videos/demo)
2024-06-28T18:16:15.627+01:00 INFO 28103 --- [ main] com.affinitysquare.WebPageAnalyzer : No active profile set, falling back to 1 default profile: "default"
2024-06-28T18:16:16.703+01:00 INFO 28103 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port 8080 (http)
2024-06-28T18:16:16.720+01:00 INFO 28103 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2024-06-28T18:16:16.721+01:00 INFO 28103 --- [ main] o.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/10.1.25]
2024-06-28T18:16:16.764+01:00 INFO 28103 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2024-06-28T18:16:16.765+01:00 INFO 28103 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1067 ms
2024-06-28T18:16:16.868+01:00 INFO 28103 --- [ main] o.s.b.a.w.s.WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html]
2024-06-28T18:16:17.104+01:00 INFO 28103 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port 8080 (http) with context path '/'
2024-06-28T18:16:17.113+01:00 INFO 28103 --- [ main] com.affinitysquare.WebPageAnalyzer : Started WebPageAnalyzer in 1.996 seconds (process running for 2.613)
To verify that everything is functioning correctly, open a web browser and visit the following URL:
http://localhost:8080
You will encounter a page with a text box where you can enter a URL. Input the URL and click 'Analyze' as depicted below.
The results are displayed in a straightforward table format, including the following details:
Following are some of the assumptions made during the development.
If you appreciated this, feel free to follow me!
docker pull fkd2000/html-web-page-analyzer:latest