Skip to content

Instantly share code, notes, and snippets.

@adamw
Last active October 11, 2020 07:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save adamw/a471965ddf3edfc5184500cab04d20bc to your computer and use it in GitHub Desktop.
Save adamw/a471965ddf3edfc5184500cab04d20bc to your computer and use it in GitHub Desktop.

Functional Scala CRUD

We'll be adding a feature to Bootzooka, a skeleton Scala microservice/web application project.

This will involve using doobie, monix, tapir, http4s, circe and compile-time dependency injection.

If you'd like to follow along:

  1. make sure you have Java & sbt installed. You can use sdkman for Java and popular package manages for sbt (e.g. brew)
  2. git clone https://github.com/softwaremill/bootzooka.git
  3. cd bootzooka
  4. sbt
  • runs the sbt console, you should see the prompt
  1. renameProject io.myself myname
  • optional
  • replace io.myself with a package of your choosing
  • same with myname, replace with any name matching the regexp [a-z]+
  1. test:compile
  • this is still in the sbt console!
  1. import the project into your favorite IDE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment