create-feltkit 0.3.1 → 0.3.3
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/README.md +21 -3
- package/bin/create.js +30 -10
- package/package.json +3 -2
- package/scaffold.d.ts +7 -2
- package/scaffold.js +45 -9
- package/template/README.md +318 -0
- package/template/feltkit/_generated/api.ts +2 -1
- package/template/feltkit/app.ts +27 -10
- package/template/feltkit/inbox.ts +21 -0
- package/template/feltkit/projects.ts +19 -0
- package/template/feltkit/tasks.ts +11 -1
- package/template/index.html +4 -1
- package/template/package.json +6 -1
- package/template/public/apple-touch-icon.png +0 -0
- package/template/public/favicon.png +0 -0
- package/template/public/feltkit-mark.png +0 -0
- package/template/public/theme.js +7 -0
- package/template/src/App.tsx +31 -7
- package/template/src/styles.css +31 -31
- package/template/src/theme.tsx +58 -0
- package/template/tests/tasks.test.ts +42 -0
- package/template-managed/.dockerignore +7 -0
- package/template-managed/Dockerfile +24 -0
- package/template-managed/README.md +222 -0
- package/template-managed/_gitignore +7 -0
- package/template-managed/docker-compose.yml +17 -0
- package/template-managed/feltdb.contract.json +1102 -0
- package/template-managed/feltkit/_generated/api.ts +9 -0
- package/template-managed/feltkit/app.ts +40 -0
- package/template-managed/feltkit/items.ts +55 -0
- package/template-managed/feltkit/system.ts +14 -0
- package/template-managed/fly.toml +28 -0
- package/template-managed/package.json +35 -0
- package/template-managed/scripts/deploy-fly.mjs +54 -0
- package/template-managed/scripts/managed-env.mjs +103 -0
- package/template-managed/tests/config.test.ts +91 -0
- package/template-managed/tests/inventory.test.ts +69 -0
- package/template-managed/tests/managed.live.test.ts +75 -0
- package/template-managed/tsconfig.json +15 -0
- package/template/public/favicon.svg +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Run the image locally against Managed FeltDB, with the settings `npm run managed:setup` wrote:
|
|
2
|
+
#
|
|
3
|
+
# docker compose --env-file .env.local up --build
|
|
4
|
+
#
|
|
5
|
+
# Compose reads .env.local only to fill in the variables below; the container receives these
|
|
6
|
+
# four and nothing else (not the control key).
|
|
7
|
+
services:
|
|
8
|
+
inventory:
|
|
9
|
+
build: .
|
|
10
|
+
ports:
|
|
11
|
+
- "8080:8080"
|
|
12
|
+
environment:
|
|
13
|
+
FELTDB_URL: ${FELTDB_URL:?run npm run managed:setup or set FELTDB_URL}
|
|
14
|
+
FELTDB_APPLICATION_ID: ${FELTDB_APPLICATION_ID:?run npm run managed:setup or set FELTDB_APPLICATION_ID}
|
|
15
|
+
FELTDB_ENVIRONMENT: ${FELTDB_ENVIRONMENT:-production}
|
|
16
|
+
FELTDB_TOKEN: ${FELTDB_TOKEN:?run npm run managed:setup or set FELTDB_TOKEN}
|
|
17
|
+
restart: unless-stopped
|