This application provides an API for terms and conditions text (with versioning data) and a service for users to accept the terms and conditions on behalf of organizations.
For a broader understanding of the system’s context, refer to the architecture documentation wiki. For more specific context on this application, see the Registration and IAM subsystem section.
These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.
Ensure you have the following installed:
- Java 21
- Maven
- Docker
Clone the repository
git clone https://github.com/Informasjonsforvaltning/terms-and-conditions.git
cd terms-and-conditionsStart MongoDB and the application (either through your IDE using the dev profile, or via CLI):
docker compose up -d
mvn spring-boot:run -Dspring-boot.run.profiles=developOnce the application is running locally, the API documentation can be accessed at http://localhost:8080/swagger-ui/index.html
mvn verify