Skip to content

Commit 611888d

Browse files
committed
updates
1 parent 653b8aa commit 611888d

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

MyApp/_pages/autoquery/okai-db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Generate CRUD APIs and UIs from existing DBs
2+
title: Generate CRUD APIs and UIs for existing DBs
33
---
44

55
A core piece of functionality in the [Text to Blazor CRUD App](/autoquery/text-to-blazor) feature is distilling an AI Prompt into TypeScript classes that can be [further customized](/autoquery/okai-models#customize-data-models)

MyApp/_pages/autoquery/okai-models.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Generate CRUD APIs + UI
44

55
## AI powered Rapid App Development Workflow
66

7-
The `okai` npm tool works similar to the online [Text to Blazor App](/autoquery/text-to-blazor) generator
7+
The `okai` npm tool works similar to the online [Text to Blazor App](https://servicestack.net/text-to-blazor) creator
88
except it's a local tool that can add additional functionality to an existing project:
99

1010
<ascii-cinema src="/img/pages/okai/okai-prompt-jobs.cast"
@@ -22,11 +22,11 @@ selected feature which you'll see after selecting the LLM Data Models you want t
2222
```sh
2323
Selected 'deepseek-r1:70b' data models
2424

25-
Saved: /home/mythz/src/MyApp/MyApp.ServiceModel/Jobs.d.ts
26-
Saved: /home/mythz/src/MyApp/MyApp.ServiceModel/Jobs.cs
27-
Saved: /home/mythz/src/MyApp/wwwroot/admin/sections/Jobs.mjs
28-
Saved: /home/mythz/src/MyApp/wwwroot/admin/sections/index.mjs
29-
Saved: /home/mythz/src/MyApp/Migrations/Migration1001.cs
25+
Saved: /projects/MyApp/MyApp.ServiceModel/Jobs.d.ts
26+
Saved: /projects/MyApp/MyApp.ServiceModel/Jobs.cs
27+
Saved: /projects/MyApp/wwwroot/admin/sections/Jobs.mjs
28+
Saved: /projects/MyApp/wwwroot/admin/sections/index.mjs
29+
Saved: /projects/MyApp/Migrations/Migration1001.cs
3030

3131
Run 'dotnet run --AppTasks=migrate' to apply new migration and create tables
3232

@@ -328,7 +328,7 @@ Which will regenerate its:
328328
- DB Migration: [MyApp/Migrations/Migration1000.cs](https://github.com/NetCoreTemplates/blazor-admin/blob/main/MyApp/Migrations/Migration1000.cs)
329329
- Admin UI: [/wwwroot/admin/sections/Bookings.mjs](https://github.com/NetCoreTemplates/blazor-admin/blob/main/MyApp/wwwroot/admin/sections/Bookings.mjs)
330330

331-
What files will be generated is controlled in the `Config` section:
331+
What files will be generated is controlled by its `Config` section:
332332

333333
```ts
334334
export type Config = {
@@ -342,7 +342,7 @@ export type Config = {
342342
So if you no longer want the code regeneration to update the DB Migration for it, you can just remove it
343343
from the Config.
344344
345-
## Customize Data Models
345+
## Rerunning Code Generation
346346
347347
The data models defined in the TypeScript Declaration file e.g. `Bookings.d.ts` is what drives the
348348
generation of the Data Models, APIs, DB Migrations and Admin UIs.
@@ -419,7 +419,7 @@ export class Booking extends AuditBase {
419419
}
420420
```
421421

422-
Which uses the `DateOnly` and `decimal` .NET Types to generate:
422+
Which uses the `DateOnly` and `decimal` .NET Types in its code generation:
423423

424424
```csharp
425425
public class Booking : AuditBase

MyApp/_pages/autoquery/text-to-blazor.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Whilst the result is a working CRUD App, the approach taken is very different fr
2222
which uses AI to generate the entire App that ends up with a whole new code-base developers didn't write
2323
which they'd now need to maintain.
2424

25-
Instead AI is only used to generate the initial Data Models within a **TypeScript Declaration file**
25+
Instead AI is only used to **generate the initial Data Models** within a **TypeScript Declaration file**
2626
which we've found is the best format supported by AI models that's also the best typed DSL for defining
2727
data models with minimal syntax that's easy for humans to read and write.
2828

@@ -41,9 +41,7 @@ generated Blazor Vue CRUD App:
4141

4242
### Blazor Vue App
4343

44-
**UI + Admin** - Creates a new [blazor-vue](https://blazor-vue.web-templates.io) template that's ideal
45-
for Internet or public facing Apps, sporting a full-featured public facing UI for a Web App's
46-
users whilst enabling a back-office CRUD UI for Admin Users to manage their App's data.
44+
**UI + Admin** - Creates a new [blazor-vue](https://blazor-vue.web-templates.io) template, ideal for Internet or public facing Apps which sports a full-featured content rich UI for a Web App's users whilst providing a back-office Admin UI for Admin Users to manage the App's data.
4745

4846
![](/img/pages/okai/okai-blazor-vue.webp)
4947

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import AudioPlayer from "../podcasts/AudioPlayer.mjs"
2+
import AsciiCinema from '../components/AsciiCinema.mjs'
3+
4+
export default {
5+
install(app) {
6+
},
7+
components: {
8+
AudioPlayer,
9+
AsciiCinema,
10+
},
11+
setup() {
12+
return { }
13+
}
14+
}

0 commit comments

Comments
 (0)