- Install sbt
cd hackatonxtao042020- Install PostgreSQL and configure access for user
postgresand passwordpostgres(or change it inModule) - Create database
hackathonxtaoand tableusers(seesrc/main/resources/V1_Create_User_Table.sqlor useFlywayas in the tests). sbt run
repositorypackage: Defines operation with database.HttpErrorHandler: Mapping business errors to http responses in a single place.httppackage: Includes all authentication httpserver oauth etc.validationobject: Includes fields validation usingcats.data.Validated.Config: server and database configuration.Server: The main application that wires all the components and starts the web server.model: all models in project.
Inspired greatly by https://github.com/profunktor/typelevel-stack.g8.git