From 24a6193a404dc7bc7b3cb71e959a85ee2a0320d2 Mon Sep 17 00:00:00 2001 From: Esa Kataja Date: Sun, 16 Nov 2025 15:51:03 +0200 Subject: [PATCH] feat: add PocketBase integration for backend connectivity - Added pocketbase-nuxt module to enable database and authentication features - Configured PocketBase to connect to local development server at port 8090 --- bun.lock | 9 +++++++++ nuxt.config.ts | 8 ++++++-- package.json | 1 + 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/bun.lock b/bun.lock index d6e4614..44fcc56 100644 --- a/bun.lock +++ b/bun.lock @@ -10,6 +10,7 @@ "@nuxt/scripts": "0.13.0", "@unhead/vue": "^2.0.3", "nuxt": "^4.2.1", + "pocketbase-nuxt": "^0.0.3", "vue": "^3.5.24", "vue-router": "^4.6.3", }, @@ -1085,6 +1086,10 @@ "pkg-types": ["pkg-types@2.3.0", "", { "dependencies": { "confbox": "^0.2.2", "exsolve": "^1.0.7", "pathe": "^2.0.3" } }, "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig=="], + "pocketbase": ["pocketbase@0.25.2", "", {}, "sha512-ONZl1+qHJMnhR2uacBlBJ90lm7njtL/zy0606+1ROfK9hSL4LRBRc8r89rMcNRzPzRqCNyoFTh2Qg/lYXdEC1w=="], + + "pocketbase-nuxt": ["pocketbase-nuxt@0.0.3", "", { "dependencies": { "@nuxt/kit": "^3.15.4", "pocketbase": "^0.25.1", "zod": "^3.24.1" } }, "sha512-B42Gvotz0yhAIvUMLaW/KtfWLiPQP/0Y36CfBPqYASy6B1cnIVCoQ/vf+Tt1uNm2xggtYSlvft5jWUuNxend/A=="], + "postcss": ["postcss@8.5.6", "", { "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", "source-map-js": "^1.2.1" } }, "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg=="], "postcss-calc": ["postcss-calc@10.1.1", "", { "dependencies": { "postcss-selector-parser": "^7.0.0", "postcss-value-parser": "^4.2.0" }, "peerDependencies": { "postcss": "^8.4.38" } }, "sha512-NYEsLHh8DgG/PRH2+G9BTuUdtf9ViS+vdoQ0YA5OQdGsfN4ztiwtDWNtBl9EKeqNMFnIu8IKZ0cLxEQ5r5KVMw=="], @@ -1423,6 +1428,8 @@ "zip-stream": ["zip-stream@6.0.1", "", { "dependencies": { "archiver-utils": "^5.0.0", "compress-commons": "^6.0.2", "readable-stream": "^4.0.0" } }, "sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA=="], + "zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], + "@babel/code-frame/js-tokens": ["js-tokens@4.0.0", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="], "@babel/core/semver": ["semver@6.3.1", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="], @@ -1495,6 +1502,8 @@ "npm-run-path/path-key": ["path-key@4.0.0", "", {}, "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ=="], + "pocketbase-nuxt/@nuxt/kit": ["@nuxt/kit@3.20.1", "", { "dependencies": { "c12": "^3.3.1", "consola": "^3.4.2", "defu": "^6.1.4", "destr": "^2.0.5", "errx": "^0.1.0", "exsolve": "^1.0.7", "ignore": "^7.0.5", "jiti": "^2.6.1", "klona": "^2.0.6", "knitwork": "^1.2.0", "mlly": "^1.8.0", "ohash": "^2.0.11", "pathe": "^2.0.3", "pkg-types": "^2.3.0", "rc9": "^2.1.2", "scule": "^1.3.0", "semver": "^7.7.3", "tinyglobby": "^0.2.15", "ufo": "^1.6.1", "unctx": "^2.4.1", "untyped": "^2.0.0" } }, "sha512-TIslaylfI5kd3AxX5qts0qyrIQ9Uq3HAA1bgIIJ+c+zpDfK338YS+YrCWxBBzDMECRCbAS58mqAd2MtJfG1ENA=="], + "postcss/nanoid": ["nanoid@3.3.11", "", { "bin": { "nanoid": "bin/nanoid.cjs" } }, "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w=="], "prompts/kleur": ["kleur@3.0.3", "", {}, "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w=="], diff --git a/nuxt.config.ts b/nuxt.config.ts index d370625..6413fb5 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -10,6 +10,10 @@ export default defineNuxtConfig({ '@nuxt/fonts', '@nuxt/image', '@nuxt/icon', - '@nuxt/scripts' - ] + '@nuxt/scripts', + 'pocketbase-nuxt' + ], + pocketbase: { + url: 'http://localhost:8090' + }, }) \ No newline at end of file diff --git a/package.json b/package.json index 6a03508..6b7031d 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "@nuxt/scripts": "0.13.0", "@unhead/vue": "^2.0.3", "nuxt": "^4.2.1", + "pocketbase-nuxt": "^0.0.3", "vue": "^3.5.24", "vue-router": "^4.6.3" },