This project follows the tutorial from the video: YouTube Video.
The project has the following directory and file structure:
src/
└── main/
├── java/
│ └── vn/
│ └── kaiz/
│ └── midterm/
│ ├── controllers/
│ │ ├── ProductController.java
│ │ └── ...
│ ├── models/
│ │ ├── Product.java
│ │ └── ProductDto.java
│ ├── repositories/
│ │ └── ProductRepository.java
│ ├── services/
│ │ ├── ProductService.java
│ │ └── ...
│ ├── MidTermApplication.java
│ └── ...
├── resources/
│ ├── application.properties
│ ├── static/
│ │ └── images/
│ └── templates/
│ ├── products/
│ │ ├── productList.html
│ │ ├── createProduct.html
│ │ └── viewProduct.html
│ └── ...
└── ...
-
Clone the Repository
git clone https://github.com/tentoilatai/JVSP_Mid-Term.git
-
Navigate to the Project Directory
cd JVSP_Mid-Term
-
Install Dependencies
This project uses Maven, so install the dependencies with:
mvn install
-
Run the Application
mvn spring-boot:run
- Controllers: Contains the application controller classes, such as
ProductController.java
. - Models: Contains the data model classes, such as
Product.java
andProductDto.java
. - Repositories: Contains the data access classes, such as
ProductRepository.java
. - Services: Contains the business logic service classes, such as
ProductService.java
. - Templates: Contains HTML template files for the user interface.
If you have any questions, please contact via email: iam@kaiz.vn or create an issue on this repository.