This project is an Content Management System built using Spring MVC, Thymeleaf, Spring Security, and Maven. It manages employee information and their associated accounts.
- User authentication and authorization using Spring Security
- User-friendly interface built with Thymeleaf
- Spring MVC: Spring MVC
- Thymeleaf: Thymeleaf
- Spring Security: Spring Security
- Maven: Apache Maven
- H2 database: H2 Database
- CI/CD with GitHub Actions: GitHub Actions
- Docker image and DockerHub: Docker Hub
- src/main/java: Contains Java source code for controllers, services, repositories, entities, and other components.
- src/main/resources: Contains configuration files (application.properties or application.yml), templates (Thymeleaf), and other resources.
- .github/workflows: Contains configuration files for GitHub pipelines and ci-cd
- Create a database with the specified name and schema.
- Create tables for Employee and Account entities according to your database schema.
- Configure database connection details in application.yml.
- Configure variable in .env file
- Clone the repository.
- Adding a new .env file to the project folder, then configure the information base on the .env sample
- Build the project using Maven:
mvn clean install
- Run the application as a Spring Boot application.
Specify necessary dependencies in the pom.xml
file, including Spring MVC, Thymeleaf, Spring Security, database driver, and other required libraries.
- Configure requests and authorization in Spring Security configuration.
- Implement authentication and authorization logic.
- Pipeline for check maven build project: merge on main
- Pipeline for build docker image and push to DockerHub: merge to ci-cd branch
If you want to contribute to this project, please fork the repository and submit a pull request.
MIT license
Provide contact information for project inquiries or support.