The aim of this repository is to provide a quick start for the development of microservices. We try to keep the template as simple as posible. We´ll continue adding functionality and releasing new versions.
For an intro to Microservices architecture, please take a look at these slides: http://www.simtlix.com/en/tech-talk-about-microservices-by-florencia-bonansea/
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes
- Download and install Docker: https://docs.docker.com/install/
- Verify docker installation: docker version
- Verify docker-compose installation: docker-compose version
- Windows: ./start.bat
- Unix: ./start.sh
http://localhost:8080/greetings
Once you finished playing around and you want to clear allocated resources (such as space, memory and ports), you have to execute:
docker-compose -f docker/docker-compose.yml down
- Go to Docker preferences and grant permissions on the local storage.
- Review https://forums.docker.com/t/trying-to-get-postgres-to-work-on-persistent-windows-mount-two-issues/12456/5
- Spring Boot
- Docker
- MongoDB
- PostreSQL
curl -X GET \
http://localhost:8080/api/users/1 \
-H 'Accept: application/json'
curl -X POST \
http://localhost:8080/api/users \
-H 'Content-Type: application/json' \
-d '{
"firstName":"test",
"lastName":"test",
"email":"test"
}'
curl -X GET \
http://localhost:8080/api/customers \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
curl -X POST \
http://localhost:8080/api/customers \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"name": "Jose",
"lastName": "Perez",
"email": "[email protected]"
}'
Microservices Technology Group @ Simtlix http://www.simtlix.com/en/technology-groups