2024-08-12 11:00:25 +02:00
|
|
|
package bootstrap
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
_ "github.com/golang-migrate/migrate/v4/source/file"
|
2024-08-17 21:57:14 +02:00
|
|
|
"github.com/stonith404/pocket-id/backend/internal/job"
|
|
|
|
|
"github.com/stonith404/pocket-id/backend/internal/service"
|
2024-08-12 11:00:25 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func Bootstrap() {
|
2024-08-17 21:57:14 +02:00
|
|
|
db := newDatabase()
|
|
|
|
|
appConfigService := service.NewAppConfigService(db)
|
2024-08-12 11:00:25 +02:00
|
|
|
|
2024-08-17 21:57:14 +02:00
|
|
|
initApplicationImages()
|
|
|
|
|
job.RegisterJobs(db)
|
|
|
|
|
initRouter(db, appConfigService)
|
2024-08-12 11:00:25 +02:00
|
|
|
}
|