A Next.js full-stack app (React, Next API routes).
Node module(s):
- react-codemirror
- cors
To get started, clone the repository and install the necessary node modules.
npm install
Make a copy of the .env.example
file, rename it as .env
. Enter your OpenAI API key. Specific instructions 5 & 6 here.
The example also includes a NEXT_PUBLIC_REMOTE_API_URL
and WHITELISTED_DOMAINS
, in case you want to fetch from another server.
Next.js defaults. See package.json
for commands.
Both dev and production are on port 3000.