├── .gitignore ├── .scalafmt.conf ├── README.md ├── docker-compose.yml ├── project ├── build.properties └── plugins.sbt └── src └── main ├── resources ├── application.conf └── db │ └── migration │ ├── V1__Create_table_users.sql │ └── V2__Insert_some_users.sql └── scala └── slouc ├── model └── UserRequest.scala ├── persistence ├── DatabaseConfig.scala ├── DatabaseIO.scala ├── UserRepo.scala └── UserRepoImpl.scala ├── server ├── Main.scala └── Routes.scala └── service └── UserService.scala /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/.gitignore -------------------------------------------------------------------------------- /.scalafmt.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/.scalafmt.conf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /project/build.properties: -------------------------------------------------------------------------------- 1 | sbt.version=1.3.13 2 | -------------------------------------------------------------------------------- /project/plugins.sbt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/project/plugins.sbt -------------------------------------------------------------------------------- /src/main/resources/application.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/resources/application.conf -------------------------------------------------------------------------------- /src/main/resources/db/migration/V1__Create_table_users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/resources/db/migration/V1__Create_table_users.sql -------------------------------------------------------------------------------- /src/main/resources/db/migration/V2__Insert_some_users.sql: -------------------------------------------------------------------------------- 1 | INSERT INTO users(id, email) values('f33f4247-938b-49cc-b8f7-a01d138ff26f', 'foo.bar@gmail.com') 2 | -------------------------------------------------------------------------------- /src/main/scala/slouc/model/UserRequest.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/model/UserRequest.scala -------------------------------------------------------------------------------- /src/main/scala/slouc/persistence/DatabaseConfig.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/persistence/DatabaseConfig.scala -------------------------------------------------------------------------------- /src/main/scala/slouc/persistence/DatabaseIO.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/persistence/DatabaseIO.scala -------------------------------------------------------------------------------- /src/main/scala/slouc/persistence/UserRepo.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/persistence/UserRepo.scala -------------------------------------------------------------------------------- /src/main/scala/slouc/persistence/UserRepoImpl.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/persistence/UserRepoImpl.scala -------------------------------------------------------------------------------- /src/main/scala/slouc/server/Main.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/server/Main.scala -------------------------------------------------------------------------------- /src/main/scala/slouc/server/Routes.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/server/Routes.scala -------------------------------------------------------------------------------- /src/main/scala/slouc/service/UserService.scala: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/slouc/typelevel-stack/HEAD/src/main/scala/slouc/service/UserService.scala --------------------------------------------------------------------------------