railcode 0.1.1 → 0.1.5
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 +10 -8
- package/dist/index.js +493 -97
- package/package.json +1 -1
- package/railcode-templates/railcode-react/dist/assets/index-6MYvol4W.css +2 -0
- package/railcode-templates/railcode-react/dist/assets/index-CfaOTQhI.js +9 -0
- package/railcode-templates/railcode-react/dist/index.html +13 -0
- package/railcode-templates/railcode-react/package-lock.json +18 -0
- package/railcode-templates/railcode-react/package.json +1 -0
- package/railcode-templates/railcode-react/src/lib/railcode.ts +2 -0
- package/static/sdk.js +10 -1
- package/railcode-templates/railcode-react/node_modules/.bin/tsc +0 -2
- package/railcode-templates/railcode-react/node_modules/.bin/vite +0 -79
package/README.md
CHANGED
|
@@ -46,7 +46,7 @@ mkdir my-app
|
|
|
46
46
|
cd my-app
|
|
47
47
|
railcode init my-app
|
|
48
48
|
railcode dev
|
|
49
|
-
railcode
|
|
49
|
+
railcode get design-system
|
|
50
50
|
railcode deploy
|
|
51
51
|
```
|
|
52
52
|
|
|
@@ -56,20 +56,22 @@ at the root, and deployable build output goes in `dist/`. Direct dependencies
|
|
|
56
56
|
in the starter are exact version pins.
|
|
57
57
|
|
|
58
58
|
`railcode dev` installs missing app dependencies on first run, then runs the app
|
|
59
|
-
from the current Railcode directory with no login step.
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
from the current Railcode directory with no login step. It starts on
|
|
60
|
+
`127.0.0.1:7331` and automatically uses the next available port when another dev
|
|
61
|
+
server is already running; use the printed URL. For inferred Vite apps, the
|
|
62
|
+
asset dev server likewise starts at `5173` and moves upward when needed.
|
|
63
|
+
Identity, access metadata, KV, and files run locally; backend-backed APIs such
|
|
64
|
+
as SQL and LLM are forwarded to the configured Railcode URL when that backend
|
|
65
|
+
access is available.
|
|
62
66
|
|
|
63
67
|
`railcode login` opens a browser authorization flow. Pass `--api-url` or set
|
|
64
68
|
`RAILCODE_API_URL` to choose the Railcode auth/API origin; if neither is set and
|
|
65
69
|
no saved URL exists, the CLI prompts for the domain and assumes `https://` when
|
|
66
70
|
you enter a bare domain.
|
|
67
71
|
|
|
68
|
-
`railcode design-system
|
|
72
|
+
`railcode get design-system` fetches the platform design-system markdown from
|
|
69
73
|
`/v1/config/design-system` using the saved browser-authorized API token or
|
|
70
|
-
`RAILCODE_API_TOKEN
|
|
71
|
-
prints markdown to stdout by default, or writes to a path passed positionally or
|
|
72
|
-
with `--output`.
|
|
74
|
+
`RAILCODE_API_TOKEN` and prints it to stdout.
|
|
73
75
|
|
|
74
76
|
`railcode deploy` runs from the current Railcode app directory, builds the app,
|
|
75
77
|
and publishes the inferred app output over HTTP to the canonical API host. It
|