The purpose of this project is to interact a little bit with Java Spring MVC
Link to the UI repo: User Interface
- For the purpose of building the Frontend I have used the framework Angular.
- The FrontEnd is hosted on a GitHub Page.
- The Spring MVC API is deployed on Azure as an App Service.
- The Backend MySQL Database also hosted on Azure.
The repository dashboarder-spring-mvc-api on GitHub contains source code for a Java Spring MVC web application that serves as an API for a dashboarding application. The application allows users to create a dashboards by adding the URL and the API will fetch the data from Youtube API.
-
The code in the repository is organized into several packages, including
config,controller,service,model, anddao.- The controller package contains Java classes that handle incoming HTTP requests and map them to
/api/data. - The service package contains classes that implement business logic and interact with data access objects (DAOs) in the dao package.
- The model package contains class that represent a table
youtubeDatawhich store the data coming fromYoutube API. - The dao package contains interface that define save method for interacting with a database.
- The controller package contains Java classes that handle incoming HTTP requests and map them to
-
Also, there is the package
utilsthat contains the class that handle the Youtube API. -
The repository contains several subdirectories, including resources (which contains configuration file db.properties).
Overall, the repository provides a starting point for building a Spring MVC-based API for a dashboarding application.
.
├── pom.xml
├── README.md
├── src
│  ├── main
│  │  ├── java
│  │  │  └── com
│  │  │  └── tati
│  │  │  ├── config
│  │  │  │  ├── AppConfig.java
│  │  │  │  ├── WebAppInitializer.java
│  │  │  │  └── WebConfig.java
│  │  │  ├── controller
│  │  │  │  └── YoutubeAPIController.java
│  │  │  ├── dao
│  │  │  │  ├── YoutubeDAOImpl.java
│  │  │  │  └── YoutubeDAO.java
│  │  │  ├── model
│  │  │  │  └── YoutubeData.java
│  │  │  ├── service
│  │  │  │  ├── YoutubeServiceImpl.java
│  │  │  │  └── YoutubeService.java
│  │  │  └── utils
│  │  │  └── YoutubeAPI.java
│  │  ├── resources
│  │  │  └── db.properties
│  │  └── webapp
│  │  └── WEB-INF
│  │  └── web.xml
│  └── test/*
└── target/*
34 directories, 28 files
