thundergolfer / example-bazel-monorepo

🌿💚 Example Bazel-ified monorepo, supporting Golang, Java, Python, Scala, and Typescript
https://buildkite.com/thundergolfer-inc/the-one-true-bazel-monorepo
MIT License
328 stars 33 forks source link

store-api new READ features #32

Closed thundergolfer closed 4 years ago

thundergolfer commented 4 years ago

Description

New models user and tag, and bridge table user_book_tag allow for expressing the following queries

the tags are relations with books, and all that exist now are READ, CURRENTLY_READING, and WANT_TO_READ.

You can test it out with:

bazel run //store-api/src/main/java/com/book/store/api:app and then

⚠️ Note: The DB has to be created first, that's a gotcha. ⚠️ Note2: I'm a newbie with SpringBoot and JPA, so this code could be whack.