yarn
at the root directorycd apps/strapi-cms
cp .env.example .env
Repeat for other services (playwright-scraper, nextjs-web, typesense-cli)Make sure all environment variables are properly set before starting the development environment.
Execute the following command at the root directory to start the development environment:
yarn run dev
docker-compose up
cd apps/playwright-scraper
yarn run scrape
yarn run generatesummaries
cd apps/typesense-cli
yarn run rebuildcollection
Different parts of the application require specific environment variables to be set in the respective .env
files within each app directory and at the root of the project.
STRAPI_API_KEY
This variable is required in the .env
files of:
apps/nextjs-web/.env
apps/playwright-scraper/.env
apps/typesense-cli/.env
.env
(at the project root)TYPESENSE_API_HOST
TYPESENSE_API_PORT
TYPESENSE_API_PROTOCOL
TYPESENSE_API_KEY
These variables are required in the .env
files of:
apps/nextjs-web/.env
apps/strapi-cms/.env
apps/typesense-cli/.env
OPENAI_API_KEY
OPENAI_API_ORG
These variables are required in the .env
file of apps/playwright-scraper/.env
.
To obtain a STRAPI_API_KEY
, follow these steps:
http://localhost:1337/admin
) and log in.Place this token in the relevant .env
files where STRAPI_API_KEY
is required.
The diagram above illustrates how Strapi, Typesense, Pothos, and Next.js are interconnected. It shows the direction in which queries are made or written.