Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

aleksanderlech/spring-rest-mongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Users service - an example of Spring Boot + REST + Mongo Application

This is just an example of a standalone REST microservice that uses some sample capabilities of

  • Spring Boot
  • Spring Data
  • Spring WEB MVC
  • Bean Validation (JSR-303) integration
  • JCache (JSR-107) integration

Getting Started

To run this project you must first have running locally mongodb database. The easiest way to do it is running the following docker command:

docker run --name users-db-1 -d -p 27017:27017 mongo:3.2.6

then you can just run the application using the following:

gradle bootRun

Enjoy the service ;)

curl localhost:8080/users