This is the backend for the brand new HMCTS case management system. Below you'll find instructions for running the application, including automatic database initialization and testing the main API endpoints.
- Build the project using Gradle:
./gradlew build
-
Start the application and PostgreSQL using Docker Compose:
docker-compose up -d
- The application will run on port
4000
. - The PostgreSQL database service will automatically create the database and tables on startup if they do not exist.
- The application will run on port
-
View the application logs:
docker-compose logs -f backend
The API runs on http://localhost:4000
when using Docker Compose.
- Run all unit and integration tests using Gradle:
./gradlew test
This will confirm the application functionality with comprehensive test coverage.
Use this README.md
for an overview of running and interacting with the application.