Dump changes
This commit is contained in:
parent
e12550a643
commit
aac2ea1b74
25 changed files with 129 additions and 76 deletions
|
|
@ -1,9 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"brainbuffer/pkg/brainbuffer"
|
||||
"brainbuffer/pkg/brainbuffer/database"
|
||||
appserver "brainbuffer/pkg/brainbuffer/server"
|
||||
"brainbuffer/pkg/brainbuffer/infrastructure"
|
||||
database2 "brainbuffer/pkg/brainbuffer/infrastructure/database"
|
||||
appserver "brainbuffer/pkg/brainbuffer/infrastructure/server"
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
"os"
|
||||
|
|
@ -12,12 +12,13 @@ import (
|
|||
func main() {
|
||||
configureLogger()
|
||||
|
||||
conf := brainbuffer.NewConfig()
|
||||
conf := infrastructure.NewConfig()
|
||||
|
||||
pool := database.Pool(conf)
|
||||
database.Migrate(pool)
|
||||
pool := database2.NewPool(conf)
|
||||
database2.Migrate(pool)
|
||||
|
||||
server := appserver.New(conf, pool)
|
||||
context := infrastructure.NewContext(pool, conf)
|
||||
server := appserver.New(context)
|
||||
|
||||
server.Logger.Fatal(server.Start(":8080"))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue