Skip to content

Simple forum developed in Java with Spring Framework and Thymeleaf πŸŒπŸ’¬

Notifications You must be signed in to change notification settings

pytdev/forum

This branch is 3 commits behind DawidStankiewicz/forum:master.

Repository files navigation

Project Forum

Simple forum created using Spring Framework and Thymeleaf. Example of simple CRUD web application.

Current functions

For everyone:

  • Creating a user profile at /registration.
  • Displaying at the homepage: all existing sections, recent topics and recent posts.
  • Displaying all topics from section at /section/{id}.
  • Displaying topic and posts at /topic/{id}.

Only for authorized user (ROLE_USER):

Only for admin (ROLE_ADMIN):

Configuration

Example application properties are in the application.example.properties file. Befroe build Forum or run tests you have to create application.properties files.

## Database connection ##
spring.datasource.url=jdbc:mysql://localhost:3306/forum
spring.datasource.username=forum
spring.datasource.password=password

## Hibernate ##
spring.jpa.hibernate.ddl-auto=create
spring.jpa.hibernate.naming.physical-strategy=org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

## Thymeleaf ##
spring.thymeleaf.cache=false
spring.messages.basename=messages/messages

## Static resources ##
spring.mvc.static-path-pattern=/resources/**

## Email ##
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.starttls.required=true
spring.mail.transport.protocol=stmp
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=### EMAIL ###
spring.mail.password=### PASSWORD ### 
spring.mail.smtp.auth=true

About

Simple forum developed in Java with Spring Framework and Thymeleaf πŸŒπŸ’¬

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 62.5%
  • HTML 32.3%
  • TSQL 3.4%
  • JavaScript 1.7%
  • CSS 0.1%