-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More updates, linters, formatting changes
- Loading branch information
Showing
67 changed files
with
586 additions
and
608 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-J-Xmx4g |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
OrganizeImports { | ||
coalesceToWildcardImportThreshold = 3 # Int.MaxValue | ||
expandRelative = false | ||
groupExplicitlyImportedImplicitsSeparately = false | ||
groupedImports = Explode | ||
groups = ["re:javax?\\.", "scala.", "*"] | ||
importSelectorsOrder = Ascii | ||
importsOrder = Ascii | ||
removeUnused = false | ||
} | ||
OrganizeImports.targetDialect = Scala3 | ||
OrganizeImports.removeUnused = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
PG_USER=jobby | ||
PG_PASSWORD=mysecretpassword | ||
PG_DB=jobby | ||
LOCAL_DEPLOYMENT=true | ||
PG_PORT=5439 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
package jobby | ||
|
||
import cats.effect.* | ||
import scribe.Scribe | ||
import org.typelevel.otel4s.trace.Tracer | ||
import scribe.Scribe | ||
|
||
class JobbyApp( | ||
val config: AppConfig, | ||
db: Database, | ||
logger: Scribe[IO], | ||
timeCop: TimeCop | ||
timeCop: TimeCop, | ||
)(using Tracer[IO]): | ||
def routes = Routes(db, config, logger, timeCop) | ||
end JobbyApp | ||
|
||
object JobbyApp: | ||
def bootstrap(config: AppConfig, logger: Scribe[IO])(using | ||
Tracer[IO] | ||
Tracer[IO], | ||
) = | ||
for db <- SkunkDatabase.load(config.postgres, config.skunk) | ||
yield JobbyApp(config, db, logger, TimeCop.unsafe) |
Oops, something went wrong.