feat(01): Simple initial landing

This commit is contained in:
Jakub Zych
2026-02-05 13:01:34 +01:00
parent d502bb19a5
commit 7b5fe94e53
8 changed files with 295 additions and 11 deletions

View File

@@ -10,15 +10,18 @@ object Main extends ZIOAppDefault {
private val banner: String =
"""
| .
| \ | /
| '-.ooooo.-'
| --- ooooo ---
| .-'ooooo'-.
| / | \
| '
|
| S U M M E R C M S
| | .
| `. * | .'
| `. ._|_* .' .
| . * .' `. *
| -------| |-------
| . *`.___.' * .
| .' |* `. *
| .' * | . `.
| . |
|
| S U M M E R C M S
|""".stripMargin
override val bootstrap: ZLayer[ZIOAppArgs, Any, Any] =
@@ -28,7 +31,7 @@ object Main extends ZIOAppDefault {
for {
cfg <- ZIO.config[SummerConfig](SummerConfig.config)
_ <- Console.printLine(banner)
_ <- Console.printLine(s" Starting on port ${cfg.server.port}...")
_ <- Console.printLine(s"Starting on port ${cfg.server.port}...")
_ <- Console.printLine("")
// Note: Migrations are NOT auto-run. Use CLI to run migrations (Phase 5).
_ <- Server.serve(Routes.routes).provide(