koenighotze / bodleian-old

A library for media, e.g., books, movies, music. Named after Oxford library of the same name

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bodleian - a library service for media

Build main or features Deploy tagged version Codacy Badge Codacy Badge Known Vulnerabilities

This is the Bodleian backend service, deployed to Google Cloud Run.

  • See infrastructure here.
  • Frontend is here

Getting started

$ ./mvnw spring-boot:run
...
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::                (v2.6.3)

$ http localhost:8080/actuator/health
HTTP/1.1 200 OK
Content-Length: 15
Content-Type: application/vnd.spring-boot.actuator.v3+json

{
    "status": "UP"
}

Calling the service

Fetch the URL of the deployed service

$ URL=$(gcloud run services describe bodleian --format json | jq  -r '.status.url')

Login and rememeber the token

$ AUTH=$(gcloud auth print-identity-token)

Call the service

$ curl -H "Authorization: Bearer $AUTH" $URL/actuator/health

{"status":"UP"}

About

A library for media, e.g., books, movies, music. Named after Oxford library of the same name


Languages

Language:Kotlin 86.3%Language:Shell 13.7%