Skip to content

Commit 054d51c

Browse files
committed
tweaks
1 parent 98609b6 commit 054d51c

File tree

1 file changed

+0
-52
lines changed

1 file changed

+0
-52
lines changed

content/docs/templates/react-static.mdx

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -165,58 +165,6 @@ For deployment instructions, including Docker + Kamal setup and GitHub Actions c
165165

166166
**[Deployment Documentation](/docs/deployment)**
167167

168-
## AutoQuery CRUD Dev Workflow
169-
170-
For Rapid Development simple [TypeScript Data Models](https://docs.servicestack.net/autoquery/okai-models) can be used to generate C# AutoQuery APIs and DB Migrations.
171-
172-
### Cheat Sheet
173-
174-
Create a new Table use `init <Table>`, e.g:
175-
176-
```bash
177-
npx okai init Table
178-
```
179-
180-
This will generate an empty `MyApp.ServiceModel/<Table>.d.ts` file along with stub AutoQuery APIs and DB Migration implementations.
181-
182-
#### Regenerate AutoQuery APIs and DB Migrations
183-
184-
After modifying the TypeScript Data Model to include the desired fields, re-run the `okai` tool to re-generate the AutoQuery APIs and DB Migrations:
185-
186-
```bash
187-
npx okai Table.d.ts
188-
```
189-
190-
> Command can be run anywhere within your Solution
191-
192-
After you're happy with your Data Model you can run DB Migrations to run the DB Migration and create your RDBMS Table:
193-
194-
```bash
195-
npm run migrate
196-
```
197-
198-
#### Making changes after first migration
199-
200-
If you want to make further changes to your Data Model, you can re-run the `okai` tool to update the AutoQuery APIs and DB Migrations, then run the `rerun:last` npm script to drop and re-run the last migration:
201-
202-
```bash
203-
npm run rerun:last
204-
```
205-
206-
#### Removing a Data Model and all generated code
207-
208-
If you changed your mind and want to get rid of the RDBMS Table you can revert the last migration:
209-
210-
```bash
211-
npm run revert:last
212-
```
213-
214-
Which will drop the table and then you can get rid of the AutoQuery APIs, DB Migrations and TypeScript Data model with:
215-
216-
```bash
217-
npx okai rm Transaction.d.ts
218-
```
219-
220168
## Ideal Use Cases
221169

222170
- SaaS applications requiring authentication

0 commit comments

Comments
 (0)