Java, Spring Boot implementation for the Note API, a web API to store, retrieve text-based notes.
This project uses the following technologies:
Testing tools:
- JUnit 5
- AssertJ
- Testcontainers
- Spring integration test configs (see here)
- @SpringBootTest
- @WebMvcTest
- @JsonTest
- @DataMongoTest
Build dependencies:
- Java 17 JDK
- Docker - used for Testcontainers integration tests
To build the application, run ./gradlew build
.
Runtime dependencies:
- Java 17
- MongoDB
To run the application, use java -jar build/libs/note-api.jar
The application is automatically configured to communicate with a local MongoDB instance running on localhost:27017.
You can start up a local MongoDB instance using the provided docker-compose.yaml
file, via docker-compose up -d