Skip to content

Commit 3a01a51

Browse files
committed
docs: update ai-blog setup instructions
1 parent 2ec3bf4 commit 3a01a51

File tree

1 file changed

+4
-3
lines changed
  • adminforth/documentation/blog/2024-10-01-ai-blog

1 file changed

+4
-3
lines changed

adminforth/documentation/blog/2024-10-01-ai-blog/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Add modules:
4747

4848
```bash
4949
cd ai-blog
50-
npm i @adminforth/upload @adminforth/rich-editor @adminforth/text-complete @adminforth/chat-gpt slugify http-proxy
50+
npm i @adminforth/upload @adminforth/rich-editor @adminforth/text-complete @adminforth/chat-gpt slugify http-proxy @adminforth/image-generation-adapter-openai @adminforth/completion-adapter-open-ai-chat-gpt
5151
```
5252

5353

@@ -334,6 +334,7 @@ if (import.meta.url === `file://${process.argv[1]}`) {
334334
if (!await admin.resource('adminuser').get([Filters.EQ('email', '[email protected]')])) {
335335
await admin.resource('adminuser').create({
336336
337+
role: 'superadmin',
337338
password_hash: await AdminForth.Utils.generatePasswordHash('adminforth'),
338339
});
339340
}
@@ -695,7 +696,7 @@ Set up your avatar (you can generate it with AI) and public name in user setting
695696

696697
![alt text](aiblogpost.png)
697698

698-
## Step 5: Create Nuxt project
699+
## Step 6: Create Nuxt project
699700

700701
Now let's initialize our seo-facing frontend.
701702
In the root directory of your admin app (`ai-blog`) and create a new folder `seo` and run:
@@ -956,7 +957,7 @@ Open `http://localhost:3500` in your browser and you will see your blog with pos
956957

957958
Go to `http://localhost:3500/admin` to add new posts.
958959

959-
## Step 6: Deploy
960+
## Step 7: Deploy
960961

961962
We will use Docker to make it easy to deploy with many ways. We will wrap both Node.js adminforth app and Nuxt.js app into single container for simplicity using supervisor. However you can split them into two containers and deploy them separately e.g. using docker compose.
962963

0 commit comments

Comments
 (0)