Files
pocket-id-pocket-id/backend/internal/bootstrap/bootstrap.go

17 lines
378 B
Go
Raw Normal View History

2024-08-12 11:00:25 +02:00
package bootstrap
import (
_ "github.com/golang-migrate/migrate/v4/source/file"
"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() {
db := newDatabase()
appConfigService := service.NewAppConfigService(db)
2024-08-12 11:00:25 +02:00
initApplicationImages()
job.RegisterJobs(db)
initRouter(db, appConfigService)
2024-08-12 11:00:25 +02:00
}