Skip to content

Commit

Permalink
Updated backend and frontend packages
Browse files Browse the repository at this point in the history
  • Loading branch information
h00s committed Aug 2, 2024
1 parent 40c39bc commit c1f0055
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
2 changes: 2 additions & 0 deletions backend/config/initializers/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ package initializers

import (
"github.com/go-raptor/raptor/v2"
"github.com/h00s/bitbox/config"
)

func App(c *raptor.Config) *raptor.AppInitializer {
return &raptor.AppInitializer{
Routes: config.Routes(),
Database: Database(),
Services: Services(),
Middlewares: Middlewares(),
Expand Down
8 changes: 4 additions & 4 deletions backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ go 1.22

require (
github.com/go-raptor/connector/postgres v0.2.9
github.com/go-raptor/raptor/v2 v2.0.0-alpha.4
gorm.io/gorm v1.25.10
github.com/go-raptor/raptor/v2 v2.0.0-alpha.7
gorm.io/gorm v1.25.11
)

require (
github.com/BurntSushi/toml v1.4.0 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/gofiber/fiber/v3 v3.0.0-beta.3 // indirect
github.com/gofiber/utils/v2 v2.0.0-beta.5 // indirect
github.com/gofiber/utils/v2 v2.0.0-beta.6 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/jackc/pgpassfile v1.0.0 // indirect
github.com/jackc/pgservicefile v0.0.0-20231201235250-de7065d80cb9 // indirect
Expand All @@ -21,7 +21,7 @@ require (
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/lmittmann/tint v1.0.4 // indirect
github.com/lmittmann/tint v1.0.5 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
Expand Down
8 changes: 8 additions & 0 deletions backend/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ github.com/go-raptor/connector/postgres v0.2.9 h1:ChKfvZmTTWK1njQvxseH9VKdpwkAmD
github.com/go-raptor/connector/postgres v0.2.9/go.mod h1:HgFSpiOkruzuDgq14tQ5rnwAH2VA+XjsCUDdzZpfyYo=
github.com/go-raptor/raptor/v2 v2.0.0-alpha.4 h1:6fjJC0G0bXmTGZlbot0yDGWfQe7SrlPD+1RpLeDW704=
github.com/go-raptor/raptor/v2 v2.0.0-alpha.4/go.mod h1:ENCn36raMP8+XcfhbCcGjAhJ+B6tKHQjTCKDoSKCX8E=
github.com/go-raptor/raptor/v2 v2.0.0-alpha.7 h1:JD81X4O5pOBV44bFIrHD66IouYbWIklhb0Ba4azzQo4=
github.com/go-raptor/raptor/v2 v2.0.0-alpha.7/go.mod h1:QWZxMIezExxprjDx9R+ks/Ic4zgp+oMzMR/yop2qKL8=
github.com/gofiber/fiber/v3 v3.0.0-beta.3 h1:7Q2I+HsIqnIEEDB+9oe7Gadpakh6ZLhXpTYz/L20vrg=
github.com/gofiber/fiber/v3 v3.0.0-beta.3/go.mod h1:kcMur0Dxqk91R7p4vxEpJfDWZ9u5IfvrtQc8Bvv/JmY=
github.com/gofiber/utils/v2 v2.0.0-beta.5 h1:zbDIU8gVAlZ2Ak9Fk8APlis4S7wUiQFbcvv6UASkm6A=
github.com/gofiber/utils/v2 v2.0.0-beta.5/go.mod h1:3Kz8Px3jInKFvqxDzDeoSygwEOO+3uyubTmUa6PqY+0=
github.com/gofiber/utils/v2 v2.0.0-beta.6 h1:ED62bOmpRXdgviPlfTmf0Q+AXzhaTUAFtdWjgx+XkYI=
github.com/gofiber/utils/v2 v2.0.0-beta.6/go.mod h1:3Kz8Px3jInKFvqxDzDeoSygwEOO+3uyubTmUa6PqY+0=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
Expand All @@ -31,6 +35,8 @@ github.com/klauspost/compress v1.17.9 h1:6KIumPrER1LHsvBVuDa0r5xaG0Es51mhhB9BQB2
github.com/klauspost/compress v1.17.9/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw=
github.com/lmittmann/tint v1.0.4 h1:LeYihpJ9hyGvE0w+K2okPTGUdVLfng1+nDNVR4vWISc=
github.com/lmittmann/tint v1.0.4/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
github.com/lmittmann/tint v1.0.5 h1:NQclAutOfYsqs2F1Lenue6OoWCajs5wJcP3DfWVpePw=
github.com/lmittmann/tint v1.0.5/go.mod h1:HIS3gSy7qNwGCj+5oRjAutErFBl4BzdQP6cJZ0NfMwE=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
Expand Down Expand Up @@ -67,3 +73,5 @@ gorm.io/driver/postgres v1.5.7 h1:8ptbNJTDbEmhdr62uReG5BGkdQyeasu/FZHxI0IMGnM=
gorm.io/driver/postgres v1.5.7/go.mod h1:3e019WlBaYI5o5LIdNV+LyxCMNtLOQETBXL2h4chKpA=
gorm.io/gorm v1.25.10 h1:dQpO+33KalOA+aFYGlK+EfxcI5MbO7EP2yYygwh9h+s=
gorm.io/gorm v1.25.10/go.mod h1:hbnx/Oo0ChWMn1BIhpy1oYozzpM15i4YPuHDmfYtwg8=
gorm.io/gorm v1.25.11 h1:/Wfyg1B/je1hnDx3sMkX+gAlxrlZpn6X0BXRlwXlvHg=
gorm.io/gorm v1.25.11/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ=
2 changes: 0 additions & 2 deletions backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@ package main

import (
"github.com/go-raptor/raptor/v2"
"github.com/h00s/bitbox/config"
"github.com/h00s/bitbox/config/initializers"
)

func main() {
r := raptor.NewRaptor()

r.Init(initializers.App(r.Utils.Config))
r.RegisterRoutes(config.Routes())

r.Listen()
}
Binary file modified frontend/bun.lockb
Binary file not shown.
10 changes: 5 additions & 5 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
},
"devDependencies": {
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.5.18",
"@sveltejs/kit": "^2.5.20",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"autoprefixer": "^10.4.19",
"daisyui": "latest",
"postcss": "^8.4.39",
"svelte": "^5.0.0-next.194",
"tailwindcss": "^3.4.6",
"vite": "^5.3.4"
"postcss": "^8.4.40",
"svelte": "^5.0.0-next.208",
"tailwindcss": "^3.4.7",
"vite": "^5.3.5"
},
"type": "module",
"dependencies": {
Expand Down

0 comments on commit c1f0055

Please sign in to comment.