Customer & order RESTful API.
This repo is focusing mainly on different REST test api frameworks and Spring test annotations.
- @WebMVCTest
- @DataMongoTest
- @SpringBootTest
- REST-assured
- Testcontainers
- Docker installation is required.
- The testcontainers.properties file must be modified with the flag
testcontainers.reuse.enable=true
on your local machine.
- Start the mongo container and redis
docker-compose -f docker-compose.dev.yml up -d
- Start the application with 'dev' spring profile active.
- Build the .jar file
mvn clean package
- Build the docker image.
docker build -t mangilaspringbootrestfulservice .
- Start docker compose
docker-compose up -d