microservices-security

This is project is using a microservices architecture, as opposed to a monolith-first strategy. That is built in top of Spring Boot and Spring Cloud libraries using Netflix OSS stack for management and support this complex architecture.

Build

Using Maven, you can build the application:

$ mvn clean install

Maven will automatically download all dependencies. This may take a few moments.

Docker

Each service is built and deployed using Docker. You can package, and generate the distribution container image(s).

$ mvn clean package docker:build

Run

You can run each service standalone, simply starting it using Maven.

$ mvn spring-boot:run

Also, there is a Docker Compose configuration where you can run all the services together.

docker-compose up

You can also stop all services at once.

docker-compose stop

Using Compose you can also start/stop services individually.

docker-compose start [service]
docker-compose stop [service]

Tools

Since this is a Maven based project, you can choice any preferred IDE to support it. If you prefer Eclipse, there is a Spring Tool Suite available which all the plugins already installed on it.

Setup for Developers

Dependencies

Setup the environment

  • Install the Eclipse IDE
  • Clone and import the repository (go to File -> Import -> Maven -> Check out Maven Projects from SCM)
  • After this process completed you can check at your workspace the projects imported and created
  • You can run each service individually (click at service project -> Run As -> Spring Boot App)
  • You can also install the Docker Tooling plugin at Eclipse