2022-12-20 18:55:01 +00:00
2022-12-06 12:28:16 +00:00
2022-12-06 12:28:16 +00:00
2022-12-06 12:28:16 +00:00
2022-12-13 14:46:08 +00:00
2022-11-30 14:59:08 +00:00

trigger.dev

Development

Warning

All the following commands should be launched from the monorepo root directory

  1. Install the dependencies.

    pnpm install
    
  2. Environment variables. You will need to create copies of the .env.example files in app/webapp

    cp ./apps/webapp/.env.example ./apps/webapp/.env
    
  3. Start postgresql, pulsar, and the pizzly server

    pnpm run docker:db
    

    Note: The npm script will complete while Docker sets up the container in the background. Ensure that Docker has finished and your container is running before proceeding.

  4. Generate prisma schema

    pnpm run generate
    
  5. Run the Prisma migration to the database

    pnpm run db:migrate:deploy
    
  6. Run the first build (with dependencies via the ... option)

    pnpm run build --filter=webapp...
    

    Running simply pnpm run build will build everything, including the NextJS app.

  7. Run the Remix dev server

pnpm run dev --filter=webapp

Tests, Typechecks, Lint, Install packages...

Check the turbo.json file to see the available pipelines.

  • Run the Cypress tests and Dev
    pnpm run test:e2e:dev --filter=webapp
    
  • Lint everything
    pnpm run lint
    
  • Typecheck the whole monorepo
    pnpm run typecheck
    
  • Test the whole monorepo
    pnpm run test
    or
    pnpm run test:dev
    
  • How to install an npm package in the Remix app ?
    pnpm add dayjs --filter webapp
    
  • Tweak the tsconfigs, eslint configs in the config-package folder. Any package or app will then extend from these configs.
S
Description
Trigger.dev 支持构建和部署完全托管的 AI Agent 与工作流。|GitHub 镜像 16.1k · 🍴 1.4k
https://github.com/triggerdotdev/trigger.dev Readme Apache-2.0 189 MiB
Languages
TypeScript 99%
JavaScript 0.4%
Shell 0.2%
CSS 0.1%