Skip to content

Commit

Permalink
feat/backend: gdrive to backblaze migration, improve create record (#237
Browse files Browse the repository at this point in the history
)
  • Loading branch information
pektezol authored Nov 21, 2024
1 parent 780bcf4 commit cff5e84
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 239 deletions.
7 changes: 4 additions & 3 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DB_PORT=
DB_USER=
DB_PASS=
DB_NAME=
GOOGLE_CLIENT_EMAIL=
GOOGLE_PRIVATE_KEY_BASE64=
GOOGLE_FOLDER_ID=
B2_BUCKET_NAME=
B2_KEY_ID=
B2_API_KEY=
B2_DOWNLOAD_URL=
1 change: 0 additions & 1 deletion backend/database/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ CREATE TABLE map_discussions_upvotes (

CREATE TABLE demos (
id UUID,
location_id TEXT NOT NULL,
PRIMARY KEY (id)
);

Expand Down
21 changes: 1 addition & 20 deletions backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
)

require (
github.com/Backblaze/blazer v0.7.1
github.com/golang-jwt/jwt/v4 v4.5.0
github.com/google/uuid v1.6.0
github.com/pektezol/steam_go v1.1.2
Expand All @@ -18,40 +19,22 @@ require (
)

require (
cloud.google.com/go/auth v0.9.3 // indirect
cloud.google.com/go/auth/oauth2adapt v0.2.4 // indirect
cloud.google.com/go/compute/metadata v0.5.0 // indirect
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/bytedance/sonic v1.12.2 // indirect
github.com/bytedance/sonic/loader v0.2.0 // indirect
github.com/cloudwego/base64x v0.1.4 // indirect
github.com/cloudwego/iasm v0.2.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/gabriel-vasile/mimetype v1.4.5 // indirect
github.com/go-logr/logr v1.4.2 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.21.0 // indirect
github.com/go-openapi/jsonreference v0.21.0 // indirect
github.com/go-openapi/spec v0.21.0 // indirect
github.com/go-openapi/swag v0.23.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/s2a-go v0.1.8 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.4 // indirect
github.com/googleapis/gax-go/v2 v2.13.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
go.opencensus.io v0.24.0 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect
go.opentelemetry.io/otel v1.29.0 // indirect
go.opentelemetry.io/otel/metric v1.29.0 // indirect
go.opentelemetry.io/otel/trace v1.29.0 // indirect
golang.org/x/arch v0.10.0 // indirect
golang.org/x/tools v0.25.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20240827150818-7e3bb234dfed // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect
google.golang.org/grpc v1.66.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

Expand All @@ -72,9 +55,7 @@ require (
github.com/ugorji/go/codec v1.2.12 // indirect
golang.org/x/crypto v0.27.0 // indirect
golang.org/x/net v0.29.0 // indirect
golang.org/x/oauth2 v0.23.0
golang.org/x/sys v0.25.0 // indirect
golang.org/x/text v0.18.0 // indirect
google.golang.org/api v0.196.0
google.golang.org/protobuf v1.34.2 // indirect
)
Loading

0 comments on commit cff5e84

Please sign in to comment.