メインコンテンツへスキップ

便利なコマンド

これらのコマンドは packages/twenty-server フォルダから実行してください。 これらのコマンドは packages/twenty-server フォルダから実行してください。 これらのコマンドは packages/twenty-server フォルダから実行してください。 これらのコマンドは packages/twenty-server フォルダから実行してください。 これらのコマンドは packages/twenty-server フォルダから実行してください。 これらのコマンドは packages/twenty-server フォルダから実行してください。 From any other folder you can run npx nx {command} twenty-server (or npx nx run twenty-server:{command}).

初期設定

npx nx database:reset twenty-server # setup the database with dev seeds

サーバーの起動

npx nx run twenty-server:start

Lint

npx nx run twenty-server:lint # pass --fix to fix lint errors

テスト

npx nx run twenty-server:test:unit          # run unit tests
npx nx run twenty-server:test:integration   # run integration tests
注: 統合テストを実行する前にデータベースをリセットする必要がある場合、 npx nx run twenty-server:test:integration:with-db-reset を実行できます。

データベースのリセット

データベースをリセットおよびシードしたい場合は、次のコマンドを実行してください:
npx nx run twenty-server:database:reset

マイグレーション

技術スタック

Twenty は主にバックエンドに NestJS を使用しています。 最初に使用した ORM は Prisma でした。 最初に使用した ORM は Prisma でした。 But in order to allow users to create custom fields and custom objects, a lower-level made more sense as we need to have fine-grained control. 最初に使用した ORM は Prisma でした。 But in order to allow users to create custom fields and custom objects, a lower-level made more sense as we need to have fine-grained control. 現在のプロジェクトでは TypeORM を使用しています。 現在の技術スタックは次のようになっています。 コア データベース サードパーティ統合
  • Sentry バグトラッキング用
テスト ツール 開発