An open API service indexing awesome lists of open source software.

https://github.com/http4s/http4s-io.g8

An alternate giter8 template fixed on IO
https://github.com/http4s/http4s-io.g8

Last synced: 4 months ago
JSON representation

An alternate giter8 template fixed on IO

Awesome Lists containing this project

README

          

# http4s giter8 template

This template is fixed on `cats.effect.IO`. For a final tagless version, see [http4s.g8](https://github.com/http4s/http4s.g8).

## Instructions

Generate an http4s service on the ember backend with Circe.

1. [Install sbt](https://www.scala-sbt.org/1.x/docs/Setup.html)
2. Create your project:
- Scala 2: `sbt new http4s/http4s-io.g8`
- Scala 3: `sbt new http4s/http4s-io.g8 --branch 0.23-scala3`
- Java 8: `sbt new http4s/http4s-io.g8 --branch 0.23-java8`
3. `cd quickstart`
4. `sbt run`
5. `curl http://localhost:8080/hello/$USER`
6. [Learn more](https://http4s.org/)