Coder Social home page Coder Social logo

hmpps-probation-estate-api's Introduction

hmpps-probation-estate-api

CircleCI API docs

This is the HMPPS Probation Estate API. This is used to serve Probation estate information

How to run locally

Run docker and launch the service in Intellij

  • We need a postgres database to back the application and we can use a local docker one. The flyway scripts will deploy the schema and all lookup data we need for this application
  • To launch the postgres docker container run the following:
docker compose up -d
  • Open this repo in Intellij
  • Right-click and Run uk.gov.justice.digital.hmpps.hmppsprobationestateapi.HmppsProbationEstateApi
  • This will fail initially but will have created a Run Configuration called HmppsProbationEstateApi in the configuration dropdown next to the Run and Debug buttons
  • Click on the HmppsProbationEstateApi configuration > Edit Configuration
  • In the VM Options box paste the following:
-Dspring.profiles.active=local
  • Save the configuration with the following:
    • Click Apply
    • Click OK
  • You should now be able to Run and Debug the application using this configuration by hitting the Run and Debug buttons next to the configuration
  • One the application is up and running

Run service in Terminal

Execute the following command:

docker compose up -d
./gradlew bootRun -Dspring.profiles.active=local

How to run the tests locally

These tests are defaults from the template, and the app only serves to run the flyway scripts. This allows you to test that the scripts work locally against postgresql in docker

docker compose up -d
./gradlew clean check

Code style & formatting

./gradlew ktlintApplyToIdea addKtlintFormatGitPreCommitHook

will apply ktlint styles to intellij and also add a pre-commit hook to format all changed kotlin files.

hmpps-probation-estate-api's People

Contributors

andrewrlee avatar andysweilam avatar carlov20 avatar dependabot[bot] avatar gareid avatar github-actions[bot] avatar gregkhawkins avatar katie-cawthorne avatar markreesmoj avatar petergphillips avatar renovate[bot] avatar sambailey-moj avatar sp-watson avatar wood-n avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hmpps-probation-estate-api's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

circleci
.circleci/config.yml
  • hmpps 8
docker-compose
docker-compose.yml
  • postgres 14
dockerfile
Dockerfile
  • eclipse-temurin 18-jre-jammy
  • eclipse-temurin 18-jre-jammy
gradle
gradle.properties
settings.gradle.kts
build.gradle.kts
  • uk.gov.justice.hmpps.gradle-spring-boot 5.10.0
  • org.jetbrains.kotlin.plugin.spring 1.9.10
  • org.jetbrains.kotlinx:kotlinx-coroutines-core 1.7.3
  • org.jetbrains.kotlinx:kotlinx-coroutines-reactor 1.7.3
  • org.springdoc:springdoc-openapi-starter-webflux-ui 2.2.0
  • org.postgresql:r2dbc-postgresql 1.0.4.RELEASE
  • org.postgresql:postgresql 42.6.0
  • org.jetbrains.kotlinx:kotlinx-coroutines-test 1.7.3
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 8.3
helm-values
helm_deploy/hmpps-probation-estate-api/values.yaml
helmv3
helm_deploy/hmpps-probation-estate-api/Chart.yaml
  • generic-service 2.9
  • generic-prometheus-alerts 1.3.2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.