This repository contains a Java Spring Boot web application for managing events and user profiles. The application includes features such as user registration, login, private event creation, event modification and deletion, and user profile management. The data is stored in an H2 file-based database.
- User Registration and Login
- Private Event Creation for Logged-In Users
- Modification and Deletion of Events
- User Profile Management
- H2 File-Based Database for Data Storage
- Bootstrap CSS for HTML Pages Styling
- Java 17
- Maven
- Spring Boot Starter Data JPA
- Spring Boot Starter Security
- Spring Boot Starter Thymeleaf
- Thymeleaf Extras Spring Security 5
- H2 Database (Runtime Scope)
- Spring Boot Starter Web
- Spring Boot DevTools (Runtime Scope)
- Spring Boot Starter Test (Test Scope)
- Spring Security Test (Test Scope)
- JUnit Jupiter API (Test Scope)
- JUnit Jupiter Engine (Test Scope)
- JUnit (Test Scope)
- Clone the repository:
https://github.com/potepaweronika/java-spring-calendar.git
- Navigate to the project directory:
cd java-spring-calendar
- Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run
- Application: https://localhost:8080
- H2 Database Console: https://localhost:8080/h2-console (JDBC URL: jdbc:h2:file:./data/calendar)
Use the following credentials for testing:
- Email: [email protected]
- Password: test
- Email: [email protected]
- Password: test
- Access the application and register/login.
- Create, modify, and delete events from your profile.
- View and manage your profile details.
- Admin credentials are required to access:
- Show All Events: https://localhost:8080/show-all-events
- Show All Users: https://localhost:8080/show-all-users
- Run tests using:
mvn test