create-feltkit 0.3.6 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/template/README.md
CHANGED
|
@@ -219,7 +219,8 @@ without their FeltDB settings.
|
|
|
219
219
|
--runtime-scopes minimal`, which writes `.env.local`), then run `npx feltkit vercel deploy`. It links
|
|
220
220
|
the Vercel project the first time, uploads only the settings the deployment needs, deploys, and
|
|
221
221
|
signs you in: it prints the app's URL, your session token, and a one-time link to production
|
|
222
|
-
Studio.
|
|
222
|
+
Studio. On Cloudflare (`--target cloudflare`), the same with `npx feltkit cloudflare deploy`
|
|
223
|
+
(Docker must be running: wrangler builds the image locally). Either container refuses to start without its
|
|
223
224
|
settings, and checks the database answers, so it never keeps data on its own disk. For
|
|
224
225
|
Fly.io, plain Docker, or other hosts, follow `.feltkit/deploy/DEPLOY.md`.
|
|
225
226
|
|
|
@@ -244,6 +245,17 @@ without their FeltDB settings.
|
|
|
244
245
|
docker run --rm -v tasks-data:/data tasks node node_modules/@feltdb/feltkit/bin/feltkit.js session create --env production --type user --id you --role member
|
|
245
246
|
```
|
|
246
247
|
|
|
248
|
+
**On AppBoundry** (`npx feltkit build --target appboundry`, then `appboundry run tasks.app`),
|
|
249
|
+
`feltkit session create` does not apply: the artifact runs without this project or FeltKit's
|
|
250
|
+
CLI. AppBoundry's operators create users with your app's roles and issue their sessions:
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
appboundry admin users add you --role member --state <installation>
|
|
254
|
+
appboundry admin sessions issue --user you --state <installation>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
See AppBoundry's production operations guide for bootstrapping the first operator.
|
|
258
|
+
|
|
247
259
|
For real users, add `auth.authenticate` to `feltkit({ ... })` to verify requests with your
|
|
248
260
|
identity provider.
|
|
249
261
|
|
package/template/_gitignore
CHANGED
package/template/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@feltdb/feltkit": "0.3.
|
|
16
|
+
"@feltdb/feltkit": "0.3.8",
|
|
17
17
|
"react": "19.2.0",
|
|
18
18
|
"react-dom": "19.2.0"
|
|
19
19
|
},
|
|
@@ -24,10 +24,5 @@
|
|
|
24
24
|
"@vitejs/plugin-react": "5.1.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
26
|
"vite": "7.3.7"
|
|
27
|
-
},
|
|
28
|
-
"overrides": {
|
|
29
|
-
"@appport/services": {
|
|
30
|
-
"@feltdb/core": "0.16.1"
|
|
31
|
-
}
|
|
32
27
|
}
|
|
33
28
|
}
|
package/template/src/App.tsx
CHANGED
|
@@ -144,10 +144,12 @@ function TokenSignIn() {
|
|
|
144
144
|
return (
|
|
145
145
|
<form className="stack" onSubmit={submit}>
|
|
146
146
|
<p className="muted">
|
|
147
|
-
Sign in with a session token. <code>npx feltkit vercel deploy</code>
|
|
148
|
-
deployment's FeltDB settings from <code>.env.local</code>):
|
|
147
|
+
Sign in with a session token from whoever runs this deployment. If FeltKit deployed it, <code>npx feltkit vercel deploy</code> printed yours the first time; to make another, run
|
|
148
|
+
this in your project's folder (it uses your deployment's FeltDB settings from <code>.env.local</code>):
|
|
149
149
|
</p>
|
|
150
150
|
<code className="block">npx feltkit session create --env production --type user --id you --role member</code>
|
|
151
|
+
<p className="muted">If AppBoundry runs this app (from its <code>.app</code> artifact), its operator creates your user and issues your session instead:</p>
|
|
152
|
+
<code className="block">appboundry admin sessions issue --user you --state <installation></code>
|
|
151
153
|
<input type="password" value={token} onChange={(e) => setToken(e.target.value)} placeholder="Session token (fks_…)" aria-label="Session token" autoComplete="off" />
|
|
152
154
|
<button type="submit" disabled={!token.trim()}>
|
|
153
155
|
Sign in
|
|
@@ -20,16 +20,11 @@
|
|
|
20
20
|
"deploy:fly": "node scripts/deploy-fly.mjs"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@feltdb/feltkit": "0.3.
|
|
23
|
+
"@feltdb/feltkit": "0.3.8"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@feltdb/core": "0.16.1",
|
|
27
27
|
"@types/node": "22.19.1",
|
|
28
28
|
"typescript": "5.9.3"
|
|
29
|
-
},
|
|
30
|
-
"overrides": {
|
|
31
|
-
"@appport/services": {
|
|
32
|
-
"@feltdb/core": "0.16.1"
|
|
33
|
-
}
|
|
34
29
|
}
|
|
35
30
|
}
|