mirror of
https://github.com/jackhh66/ChatGPT_Web_accessToken.git
synced 2026-12-03 20:29:34 +00:00
chore: README
This commit is contained in:
1 parent
cd36072d6a
commit
0ddc1e8ad6
1 file changed
+19
-8
@@ -3,17 +3,28 @@
|
||||
This is a ChatGPT web application demo with express and vue3
|
||||
|
||||

|
||||
## Intro
|
||||
1. `node >= 18`
|
||||
1. `pnpm install` node deps
|
||||
2. set `OPENAI_API_KEY` in `.env`
|
||||
## Usage
|
||||
> Make sure `node >= 18`
|
||||
|
||||
## Run
|
||||
install node deps
|
||||
```shell
|
||||
# 1. run service
|
||||
pnpm run service
|
||||
pnpm install
|
||||
```
|
||||
|
||||
# 2. run web
|
||||
Sign up for an [OpenAI API key](https://platform.openai.com/overview) and store it in your environment.
|
||||
|
||||
```
|
||||
# .env
|
||||
OPENAI_API_KEY="Your Key"
|
||||
```
|
||||
|
||||
Run service
|
||||
```shell
|
||||
pnpm run service
|
||||
```
|
||||
|
||||
Run web
|
||||
```shell
|
||||
pnpm run dev
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user