- Then open the terminal and check:
docker info
or check docker version
docker -v
and docker compose version
docker-compose -v
- Clone the repository:
git clone http://link.git
- Build the maven project:
./mvnw clean package -DskipTests
- Build and Running the containers:
This command will build the docker containers and start them.
docker-compose up --build
URL BASE =http://localhost:8080
- POST request to
/api/usuario/cadastrar
with a object as JSON creates a new "Usuario"; - POST request to
/api/usuario/{usuarioId}/cadastrar-comic/{comicId}
with a usuarioId and comidId creates a new Comic; - GET request to
/api/usuario/consultar/{usuarioId}
returns the "Usuario";
- Check all the images you have:
docker images
- Stop containers:
docker-compose down
- Remove old stopped containers of docker-compose
docker-compose rm -f