This is a sample project that uses OpenAI to correct and improve text.
-
cd client
-
Run the command
yarn install
to install necessary libraries. -
Run the command
NEXT_PUBLIC_API_SERVER=http://localhost:4000 yarn dev
to start the development server.
-
The JavaScript runtime on the server side is using Deno, please install Deno according to your development environment from here.
-
Obtain your OpenAI API key from here.
-
cd server
-
Set the environment variable OPENAI_API_KEY with the API key obtained from OpenAI. Example:
export OPENAI_API_KEY=xxxxx
-
Run the command
deno run --allow-net --allow-env server.ts
to start the server.
The scripts and documentation within this project are distributed under the MIT License.