This is a Plasmo extension project bootstrapped with plasmo init
.
- Install
pnpm
:
curl -fsSL https://get.pnpm.io/install.sh | sh -
- Install the JS dependencies:
pnpm install
!!! tip You may want to check your node and npm version by using "node -v" and "npm -v" respectively. The app was developed using node v16.16.0
!!! note If you are facing ENOENT errors with node-gyp, try cleaning out node modules and cache before trying again:
```sh
rm -rf node_modules && npm cache clean --force && npm install
```
- Install the Python dependencies.
python3 -m virtualenv venv
source venv/bin/activate
python3 -m pip install -r requirements.txt
-
Create a
.env
file at the root of the repository. This should contain aSENDGRID_API_KEY
. -
Run the development server for the extension:
pnpm dev
- In a separate terminal, run the Python server (defaults to port 8000):
uvicorn server:app --reload
-
On your browser, go to
chrome://extensions
, enable "Developer Mode", and then press "Load Unpacked". Navigate tobuild/chrome-mv3-dev
to finish loading the extension. -
Finally, navigate to https://labs.openai.com to see the extension.
!!! note Make sure you are logged in on OpenAI to see the extension