Skip to content

Commit

Permalink
K8s deployment :wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Jun 23, 2024
1 parent 8156874 commit 391f8e7
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import com.hexagonkt.core.*
import com.hexagonkt.http.server.HttpServer
import com.hexagonkt.http.server.HttpServerSettings
import com.hexagonkt.http.server.jetty.JettyServletAdapter
import com.hexagontk.todo.backend.domain.Task
import com.hexagontk.todo.backend.stores.MongoDbTaskStore
import com.hexagontk.todo.backend.domain.model.Task
import com.hexagontk.todo.backend.adapters.MongoDbTaskStore

internal class Application {
private val server: HttpServer = HttpServer(
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/Router.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import com.hexagonkt.http.handlers.path
import com.hexagonkt.serialization.jackson.json.Json
import com.hexagonkt.serialization.parseMap
import com.hexagonkt.serialization.serialize
import com.hexagontk.todo.backend.domain.Task
import com.hexagontk.todo.backend.stores.TaskStore
import com.hexagontk.todo.backend.domain.model.Task
import com.hexagontk.todo.backend.domain.TaskStore
import java.util.UUID

class Router(private val store: TaskStore) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package com.hexagontk.todo.backend.stores
package com.hexagontk.todo.backend.adapters

import com.hexagonkt.core.Jvm
import com.hexagonkt.store.mongodb.MongoDbStore
import com.hexagontk.todo.backend.domain.Task
import com.hexagontk.todo.backend.domain.model.Task
import com.hexagontk.todo.backend.domain.TaskStore

class MongoDbTaskStore: TaskStore {
private val store = MongoDbStore(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hexagontk.todo.backend.stores
package com.hexagontk.todo.backend.domain

import com.hexagontk.todo.backend.domain.Task
import com.hexagontk.todo.backend.domain.model.Task

interface TaskStore {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.hexagontk.todo.backend.domain
package com.hexagontk.todo.backend.domain.model

data class Task(
val id: String,
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/TaskRouterTest.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.hexagontk.todo.backend.domain

import com.hexagontk.todo.backend.stores.TaskStore
import com.hexagontk.todo.backend.domain.model.Task

internal class TaskRouterTest {

Expand Down

0 comments on commit 391f8e7

Please sign in to comment.