RunGroop web application clone is an example of backend architecture usage in Java. This clone repository was created by Teddy Smith and the development process was shown online in video format on YouTube. This application was built using Spring, Spring-Security, Thymeleaf, Hibernate, and MVC architectures. Necessary package and code updates have been made to comply with today's standards.
The updates made in the security chain of the project are as follows:
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth -> auth
.requestMatchers("/login",
"/register",
"/register/save",
"/clubs",
"/css/**",
"/js/**").permitAll()
.anyRequest().authenticated())
.formLogin(form -> form
.loginPage("/login")
.defaultSuccessUrl("/clubs")
.loginProcessingUrl("/login")
.failureUrl("/login?error=true")
.permitAll())
.logout(logout -> logout
.logoutRequestMatcher(new AntPathRequestMatcher("/logout"))
.permitAll());
return http.build();
}
- Clone or Download the Project: Follow these steps to clone or download the project:
git clone https://github.com/MuhammetFatihAktug/run-groop.git
- Resolve Dependencies: To run the project, resolve the necessary dependencies by running:
mvn install
- Run the Application:
mvn spring-boot:run
- Access URL: You can access the application at http://localhost:8080.