We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ec508f commit 22931a2Copy full SHA for 22931a2
.env.example
@@ -1 +1 @@
1
-POCKETBASE_URL=""
+POCKETBASE_URL="http://127.0.0.1:8090"
package.json
@@ -13,6 +13,7 @@
13
"scripts": {
14
"postinstall": "svelte-kit sync",
15
"dev": "vite dev",
16
+ "dev:pb": "./pocketbase/dev.sh",
17
"build": "vite build",
18
"preview": "vite preview",
19
"lint": "prettier --check src && pnpm check",
@@ -59,4 +60,4 @@
59
60
"node": "22.9.0",
61
"pnpm": "9.12.0"
62
}
-}
63
+}
pocketbase/dev.sh
@@ -0,0 +1,10 @@
+if [[ ${PWD##*/} != "pocketbae" ]]; then
2
+ cd pocketbase || exit 1
3
+fi
4
+
5
+echo "Applying migrations..."
6
+go run main.go migrate up
7
+echo "Adding admin user..."
8
+go run main.go admin create [email protected] testtest &>/dev/null
9
+echo "Starting..."
10
+go run main.go serve
0 commit comments