Skip to content

singudotdev/java-microservices-spring-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring API

The ultimate template for starting a Java API with Spring

This is an API with the purpose of be a template for microservice based projects that uses Spring Boot 3, Swagger/OpenAPI 3, Logstash, Consul as a service discovery and Keycloak as authentication platform. Will add elasticsearch and PostgreSQL in the future in order to use PostgreSQL, Elasticsearch and MongoDB.

How to deploy with Docker Compose: Chmod in order to add execution permissions:

chmod +x ./deploy.sh && chmod +x ./stop.sh

Execute with root:

sudo ./deploy.sh

To stop the deployment:

sudo ./stop.sh

You can deploy your own Keycloak instance with Docker using this guide: https://www.keycloak.org/getting-started/getting-started-docker

This API is intended to be used with the ELK Stack in order to centralize logs, so you will need to deploy it also. If not, you must update the code: delete logback.xml from resources and logstash dependency from pom.xml.

Docker ELK: https://github.com/deviantony/docker-elk

About

A java API with Spring Boot 3, Spring Security 6, Swagger/OpenAPI 3, Logstash, Consul and Keycloak

Resources

License

Stars

Watchers

Forks

Contributors