This project is a web application developed using the Spring Framework. It leverages Spring MVC for handling web requests, Thymeleaf for rendering HTML views, Spring Security for securing the application, and Spring JDBC for database interactions. All routes within this application are authorized based on user roles.
- Role-based access control
- Secure authentication and authorization using Spring Security
- Dynamic HTML content rendering with Thymeleaf
- Efficient database operations with Spring JDBC
- RESTful web services
- MVC architecture
- Spring Framework: Core framework used for building the application.
- Spring MVC: Used for handling web requests and implementing the MVC pattern.
- Thymeleaf: Template engine for rendering HTML views.
- Spring Security: Provides authentication and authorization mechanisms.
- Spring JDBC: Simplifies database interactions.
- Java: Programming language used for development.
- Maven: Build automation tool.
- Clone the repository:
git clone https://github.com/Olmosbek510/onlineStore.git
- Navigate to the project directory:
cd your-repo - Build the project using Maven:
mvn clean install
- Run the application:
mvn spring-boot:run
- Access the application:
Open your web browser and navigate to
http://localhost:8080.
- The database configuration is located in
src/main/java/uz/inha/config/DbConfig.java. - Update the database URL, username, and password as per your setup.
- User roles and security configurations are defined in
src/main/java/uz/inha/config/security/SecurityConfig.java. - Modify the security configuration to match your requirements.
- Fork the repository.
- Create a new branch:
git checkout -b feature/your-feature
- Make your changes and commit them:
git commit -m 'Add some feature' - Push to the branch:
git push origin feature/your-feature
- Create a new Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.