Hunt the git.
- Go to trigger.dev to get the DEVELOPMENT secret key (this is personal) and put it into
TRIGGER_SECRET_KEY. This should have a format liketr_dev_..... - Go to neon dashboard to get the DEVELOPMENT database url of your branch and put it into
DATABASE_URL. - Go to github settings to get your
GITHUB_TOKEN. - Go to Upstash Vector to create a vector index for search functionality.
- Add the following variables to your
.env:UPSTASH_VECTOR_REST_URLUPSTASH_VECTOR_REST_TOKEN
- Add the following variables to your
- Go to Mistral Console and generate your api key, then replace the
MISTRAL_API_KEYin your.envfile. - Replace all variables in a
.envfile.
- Run web platform:
bun install
bun dev- Run background tasks:
bun x trigger.dev dev- Deploy triggers (on updates):
npx trigger.dev@latest deployThe application uses Upstash Vector for fast, typo-tolerant search capabilities. To index all users in the database:
bun index-usersThis script will:
- Fetch all users from the database
- Index both username and fullname for each user
- Store relevant metadata for search results
For each user, two records are created in the vector database (one for username, one for fullname), making searching by either field efficient.
All triggers must be declared inside of src/triggers.