This project was bootstrapped with Create React App and Craco.
It's an example of how to make a standalone React app that uses the Big Sky Agents NPM package.
npm install
npm startTo test:
npm testTo build the app:
npm run buildTo set the default OpenAI API key, put this in .env. It is important to include the REACT_APP_ prefix for the variable to be picked up by Create React App:
REACT_APP_OPENAI_API_KEY=sk-...See the Create React App section about deployment for instructions on how to run in production.
git clone git@github.com:Automattic/big-sky-agents.git
cd big-sky-agents
npm install
npm link
npm run dev # this will continuously build the packageThen, in this project:
npm install
npm link @automattic/big-sky-agents
npm start # this will launch the app on http://localhost:3000