Skip to content

Spring boot mvc application using thymeleaf template and mongoDB created by docker-compose.

Notifications You must be signed in to change notification settings

soerenehm/mongomvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot MVC Application

Build Status

Thymeleaf template is filled at startup by document entities stored in mongodb database configured by application properties.

Following dependencies are used:

Application

  • Web
  • MongoDB
  • Lombok
  • Thymeleaf

Metrics

Development

  • Devtools

Swagger

Use Docker Compose for creating Spring Boot Application with MongoDB

In parent folder make creates two docker container named

  • mongomvc (Spring Boot MVC Application)

  • mongodb (MongoDB)

and run tests afterwards.

Attach to mongodb container:

$ docker exec -it mongodb bash 

and execute queries:

$ mongo # Starts mongo client
$ use custom # Change database
$ db.persons.find() # Execute query