This template is based on a final tagless architecture. For an alternate version fixed on cats.effect.IO
, see http4s-io.g8.
Generate an http4s service on the ember backend with Circe.
- Install sbt
- Create your project:
- Scala 2:
sbt new http4s/http4s.g8
- Scala 3:
sbt new http4s/http4s.g8 --branch 0.23-scala3
- Java 8:
sbt new http4s/http4s.g8 --branch 0.23-java8
- Scala 2:
cd quickstart
sbt run
curl http://localhost:8080/hello/$USER
- Learn more