@getstrata/starter 1.0.0 → 1.0.2
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 +27 -9
- package/dist/cli.js +427 -167
- package/dist/templates/overlays/api/docs/API.md +45 -5
- package/dist/templates/overlays/spa-react/frontend/src/App.tsx +4 -25
- package/dist/templates/overlays/spa-react/frontend/src/pages/HomePage.tsx +72 -0
- package/dist/templates/overlays/spa-react/frontend/src/pages/LoginPage.tsx +6 -3
- package/dist/templates/overlays/spa-react/frontend/src/pages/NotFoundPage.tsx +1 -1
- package/dist/templates/package.json +3 -3
- package/dist/templates/src/bootstrap/config.ts +11 -0
- package/dist/templates/src/bootstrap/createApp.ts +2 -1
- package/dist/templates/src/bootstrap/server.ts +1 -1
- package/dist/templates/src/lib/view.ts +2 -2
- package/dist/templates/src/modules/site/index.ts +1 -1
- package/package.json +1 -1
- package/dist/templates/overlays/spa-react/frontend/src/pages/OrganizationsPage.tsx +0 -69
- package/dist/templates/overlays/spa-react/frontend/src/pages/ProjectsPage.tsx +0 -65
- package/dist/templates/overlays/spa-react/frontend/src/pages/TasksPage.tsx +0 -65
package/README.md
CHANGED
|
@@ -1,25 +1,43 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @getstrata/starter
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The `create-strata` generator for [Strata](https://github.com/EyK-26/strata). Requires Bun (tested on 1.4.x).
|
|
4
|
+
|
|
5
|
+
Prefer the short form, which resolves the [`create-strata`](https://www.npmjs.com/package/create-strata) package:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bunx create-strata my-app
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
This package ships the same generator at the same version and also works directly:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bunx @getstrata/starter my-app
|
|
15
|
+
```
|
|
4
16
|
|
|
5
17
|
## Usage
|
|
6
18
|
|
|
7
19
|
```bash
|
|
8
20
|
bunx create-strata my-app
|
|
9
21
|
bunx create-strata my-app --yes
|
|
10
|
-
bunx create-strata
|
|
22
|
+
bunx create-strata /tmp/my-app --yes --frontend server-htmx --database postgres --auth cookie --docker
|
|
11
23
|
```
|
|
12
24
|
|
|
13
|
-
|
|
25
|
+
A directory path works as well as a bare name; the last path segment becomes the project name.
|
|
26
|
+
|
|
27
|
+
The wizard asks for each layer. In a terminal, lists use up/down and Enter, or a number key. Extras are toggled one at a time, and only the ones that apply to your auth choice are offered. Passing an inapplicable extra as a flag prints a warning and leaves it off, so `--auth headers --mfa` will not write `FEATURE_MFA=true` into an app with no MFA code.
|
|
28
|
+
|
|
29
|
+
Layer flags: `--frontend`, `--database`, `--auth`, `--tenancy`, `--cache`, `--queue`, `--mail`, `--spa-prefix`, plus extras (`--mfa`, `--email-verification`, `--scim`, `--metrics`) and their `--no-` forms.
|
|
14
30
|
|
|
15
|
-
Pick
|
|
31
|
+
Pick one database engine. Docker Compose is optional (`--docker`, `--no-docker`, `--docker-services=postgres,redis`) and only includes services for the tools you selected. `--docker` with Postgres or MySQL also writes Adminer on port 8080.
|
|
16
32
|
|
|
17
33
|
## What you get
|
|
18
34
|
|
|
19
|
-
A Bun
|
|
35
|
+
A Bun and TypeScript app on `@getstrata/core` and `@getstrata/bootstrap` that boots, migrates, and passes `bun run check`. Cookie apps include a restyleable welcome page, `/login`, `/register`, and password reset. Token apps include `POST /api/v1/auth/login` plus register and reset. Tenancy is `none`, `column` (any engine), or `rls` (Postgres only; other engines fall back to `column`). Choices are recorded in `strata.layers.json`.
|
|
20
36
|
|
|
21
|
-
|
|
37
|
+
The `strata` binary installs into the app rather than globally, so use the generated `bun run` scripts.
|
|
22
38
|
|
|
23
|
-
##
|
|
39
|
+
## Docs
|
|
24
40
|
|
|
25
|
-
|
|
41
|
+
- [Getting started](https://github.com/EyK-26/strata/blob/main/docs/GETTING-STARTED.md)
|
|
42
|
+
- [Starter and layers](https://github.com/EyK-26/strata/blob/main/docs/STARTER.md)
|
|
43
|
+
- [Building apps](https://github.com/EyK-26/strata/blob/main/docs/BUILDING-APPS.md)
|