create-rr-stack 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/index.ts +48 -0
- package/package.json +34 -4
- package/scaffold.ts +88 -0
- package/template/.env.example +3 -0
- package/template/.github/workflows/ci.yml +38 -0
- package/template/AGENTS.md +44 -0
- package/template/CLAUDE.md +1 -0
- package/template/LICENSE +21 -0
- package/template/README.md +58 -0
- package/template/_gitignore +7 -0
- package/template/compose.yml +17 -0
- package/template/openapi.json +137 -0
- package/template/scripts/check.sh +49 -0
- package/template/scripts/smoke.sh +31 -0
- package/template/server/.sqlx/query-2abc65ebb76339a9d9a9d09820c9cdd6ceba212593a9641b80cda81df39e2fed.json +64 -0
- package/template/server/.sqlx/query-4713cdeecf4c3beeef699a78fc6f52857ba3a8f357565ba00d1d97095057e0f5.json +62 -0
- package/template/server/Cargo.lock +2135 -0
- package/template/server/Cargo.toml +34 -0
- package/template/server/clippy.toml +2 -0
- package/template/server/migrations/0001_todos.sql +6 -0
- package/template/server/src/bin/openapi.rs +4 -0
- package/template/server/src/health.rs +15 -0
- package/template/server/src/lib.rs +80 -0
- package/template/server/src/main.rs +22 -0
- package/template/server/src/todos.rs +94 -0
- package/template/server/tests/health.rs +31 -0
- package/template/server/tests/todos.rs +83 -0
- package/template/web/_gitignore +7 -0
- package/template/web/app/api/@tanstack/react-query.gen.ts +84 -0
- package/template/web/app/api/client/client.gen.ts +277 -0
- package/template/web/app/api/client/index.ts +27 -0
- package/template/web/app/api/client/types.gen.ts +218 -0
- package/template/web/app/api/client/utils.gen.ts +316 -0
- package/template/web/app/api/client.gen.ts +16 -0
- package/template/web/app/api/core/auth.gen.ts +48 -0
- package/template/web/app/api/core/bodySerializer.gen.ts +82 -0
- package/template/web/app/api/core/params.gen.ts +178 -0
- package/template/web/app/api/core/pathSerializer.gen.ts +171 -0
- package/template/web/app/api/core/queryKeySerializer.gen.ts +117 -0
- package/template/web/app/api/core/serverSentEvents.gen.ts +242 -0
- package/template/web/app/api/core/types.gen.ts +110 -0
- package/template/web/app/api/core/utils.gen.ts +140 -0
- package/template/web/app/api/index.ts +4 -0
- package/template/web/app/api/sdk.gen.ts +32 -0
- package/template/web/app/api/types.gen.ts +74 -0
- package/template/web/app/app.css +15 -0
- package/template/web/app/root.tsx +82 -0
- package/template/web/app/routes/home.tsx +21 -0
- package/template/web/app/routes/todos.tsx +47 -0
- package/template/web/app/routes.ts +6 -0
- package/template/web/bun.lock +572 -0
- package/template/web/openapi-ts.config.ts +11 -0
- package/template/web/package.json +30 -0
- package/template/web/public/favicon.ico +0 -0
- package/template/web/react-router.config.ts +7 -0
- package/template/web/tsconfig.json +26 -0
- package/template/web/vite.config.ts +13 -0
- package/README.md +0 -3
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"db_name": "PostgreSQL",
|
|
3
|
+
"query": "INSERT INTO todos (title) VALUES ($1) RETURNING id, title, done, created_at",
|
|
4
|
+
"describe": {
|
|
5
|
+
"columns": [
|
|
6
|
+
{
|
|
7
|
+
"ordinal": 0,
|
|
8
|
+
"name": "id",
|
|
9
|
+
"type_info": "Int8",
|
|
10
|
+
"origin": {
|
|
11
|
+
"Table": {
|
|
12
|
+
"table": "todos",
|
|
13
|
+
"name": "id"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"ordinal": 1,
|
|
19
|
+
"name": "title",
|
|
20
|
+
"type_info": "Text",
|
|
21
|
+
"origin": {
|
|
22
|
+
"Table": {
|
|
23
|
+
"table": "todos",
|
|
24
|
+
"name": "title"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"ordinal": 2,
|
|
30
|
+
"name": "done",
|
|
31
|
+
"type_info": "Bool",
|
|
32
|
+
"origin": {
|
|
33
|
+
"Table": {
|
|
34
|
+
"table": "todos",
|
|
35
|
+
"name": "done"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"ordinal": 3,
|
|
41
|
+
"name": "created_at",
|
|
42
|
+
"type_info": "Timestamptz",
|
|
43
|
+
"origin": {
|
|
44
|
+
"Table": {
|
|
45
|
+
"table": "todos",
|
|
46
|
+
"name": "created_at"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"parameters": {
|
|
52
|
+
"Left": [
|
|
53
|
+
"Text"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
"nullable": [
|
|
57
|
+
false,
|
|
58
|
+
false,
|
|
59
|
+
false,
|
|
60
|
+
false
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"hash": "2abc65ebb76339a9d9a9d09820c9cdd6ceba212593a9641b80cda81df39e2fed"
|
|
64
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"db_name": "PostgreSQL",
|
|
3
|
+
"query": "SELECT id, title, done, created_at FROM todos ORDER BY created_at DESC, id DESC",
|
|
4
|
+
"describe": {
|
|
5
|
+
"columns": [
|
|
6
|
+
{
|
|
7
|
+
"ordinal": 0,
|
|
8
|
+
"name": "id",
|
|
9
|
+
"type_info": "Int8",
|
|
10
|
+
"origin": {
|
|
11
|
+
"Table": {
|
|
12
|
+
"table": "todos",
|
|
13
|
+
"name": "id"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"ordinal": 1,
|
|
19
|
+
"name": "title",
|
|
20
|
+
"type_info": "Text",
|
|
21
|
+
"origin": {
|
|
22
|
+
"Table": {
|
|
23
|
+
"table": "todos",
|
|
24
|
+
"name": "title"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"ordinal": 2,
|
|
30
|
+
"name": "done",
|
|
31
|
+
"type_info": "Bool",
|
|
32
|
+
"origin": {
|
|
33
|
+
"Table": {
|
|
34
|
+
"table": "todos",
|
|
35
|
+
"name": "done"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"ordinal": 3,
|
|
41
|
+
"name": "created_at",
|
|
42
|
+
"type_info": "Timestamptz",
|
|
43
|
+
"origin": {
|
|
44
|
+
"Table": {
|
|
45
|
+
"table": "todos",
|
|
46
|
+
"name": "created_at"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
"parameters": {
|
|
52
|
+
"Left": []
|
|
53
|
+
},
|
|
54
|
+
"nullable": [
|
|
55
|
+
false,
|
|
56
|
+
false,
|
|
57
|
+
false,
|
|
58
|
+
false
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
"hash": "4713cdeecf4c3beeef699a78fc6f52857ba3a8f357565ba00d1d97095057e0f5"
|
|
62
|
+
}
|