sabuhibrahim / spring-mvc-meet-application-with-thymeleaf

This is a Spring MVC example. It uses a PostgreSQL connection and a Tymeleaf template engine. Also there is a simple dockerizing example.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple meet application example with Spring MVC

This project includes authentication (login, register, logout), groups (list, create, update, delete, subscribe), and events (list, create, update, detail, delete, participate) pages. It uses a PostgreSQL connection and a Tymeleaf template engine. Also simple dockerizing example.

Installation

With docker

  • First install docker
  • (Optional) Change Postgresql auth properties on docker-compose.yml and application.properties.docker
  • Run docker-compose to build docker containers
docker-compose up -d --build

or

docker compose up -d --build
  • It takes a few minutes application to get ready. If your containers up check logs to see backend is ready
docker logs backend -f 

Without docker

  • First you need Postgresql database
  • Add your postgresql auth properties to src/main/recources/application.properties
  • If you don't use docker comment spring-boot-docker-compose dependency in pom.xml file
...
<dependency>
 <groupId>org.springframework.boot</groupId>
 <artifactId>spring-boot-docker-compose</artifactId>
 <scope>runtime</scope>
 <optional>true</optional>
</dependency>
...
  • Use your IDE to run application or use maven build and run
mvn install
java -jar target/spring-meet-app.jar

If it is ready

About

This is a Spring MVC example. It uses a PostgreSQL connection and a Tymeleaf template engine. Also there is a simple dockerizing example.


Languages

Language:Java 58.8%Language:HTML 41.0%Language:Dockerfile 0.2%Language:Shell 0.1%