From e946be8b6ecc24718dc72b774bc89948f551369e Mon Sep 17 00:00:00 2001 From: krisantrobus <55083528+krisantrobus@users.noreply.github.com> Date: Wed, 29 Jan 2025 14:27:51 -0600 Subject: [PATCH] chore(intenral-docs): add icons doc (#4215) * chore(intenral-docs): add icons doc * chore(internal-docs): backend development * chore(internal-docs): update backend docs * chore(internal-docs): fix typo --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- .../engineering/developing-locally.md | 70 +++++++++++++++++++ internal-docs/engineering/icons.md | 21 ++++++ package.json | 1 + 3 files changed, 92 insertions(+) create mode 100644 internal-docs/engineering/icons.md diff --git a/internal-docs/engineering/developing-locally.md b/internal-docs/engineering/developing-locally.md index 9a28a8570f..55496823fc 100644 --- a/internal-docs/engineering/developing-locally.md +++ b/internal-docs/engineering/developing-locally.md @@ -13,6 +13,7 @@ - [Working on components](#working-on-components) - [Working on the docs site](#working-on-the-docs-site) - [Working on Remix (Theme Designer)](#working-on-remix-theme-designer) + - [Working on Backend](#working-on-backend) ## Prerequisites @@ -300,3 +301,72 @@ Then run: ```bash yarn start:theme-designer ``` + +## Working on Website Backend + +This section covers how to setup the Supabase backend and configuring additional environment variables. This will enable development of AI assistant and generation scripts such as [generate-embeddings.ts](../../packages/paste-website/scripts/search/generate-embeddings.ts) + +### Prerequisites + +You will need docker or a similar service in order to start the local supabase instance. + +### Environment + +To run the backend and develop all functionality of the website you will need to add additional variable in the `.env` file previously configured + +**Note**: access can be granted internally to OpenAI via the Service portal + +
OPENAI_API_KEY + | +The token used to interact with OpenAI + | +
OPENAI_API_SECRET + | +The secret provided by OpenAI + | +
OPENAI_ASSISTANT_ID + | +The assistant id for the OpenAI project + | +
SUPABASE_URL + | +The url of the supabase backend you want to use. For local development is should map to http://127.0.0.1:54321 + | +
SUPABASE_KEY + | +This will be generated and output from the start command in `/apps/backend`. It can also be retrieved by running `npx supabase status` in the directory. + | +
GH_SERVICE_ACC_DISCUSSIONS_TOKEN + | +Used for embeddings script, must be a token with read access to Paste repo discussions. + | +
ROLLBAR_ACCESS_TOKEN + | +A dummy value can be used for local development e.g. "MOCK_TOKEN" + | +