> ## Documentation Index
> Fetch the complete documentation index at: https://docs.twenty.com/llms.txt
> Use this file to discover all available pages before exploring further.

# أوامر الواجهة الأمامية

## الأوامر المفيدة

### "بدء التطبيق"

```bash theme={null}
npx nx start twenty-front
```

### "إعادة توليد مخطط graphql بناءً على مخطط API graphql"

```bash theme={null}
npx nx run twenty-front:graphql:generate --configuration=metadata
```

"أو"

```bash theme={null}
npx nx run twenty-front:graphql:generate
```

### Lint

```bash theme={null}
npx nx run twenty-front:lint # pass --fix to fix lint errors
```

## "الترجمات"

```bash theme={null}
npx nx run twenty-front:lingui:extract
npx nx run twenty-front:lingui:compile
```

### تجربة

```bash theme={null}
npx nx run twenty-front:test # run jest tests
npx nx run twenty-front:storybook:serve:dev # run storybook
npx nx run twenty-front:storybook:test # run tests # (needs yarn storybook:serve:dev to be running)
npx nx run twenty-front:storybook:coverage # (needs yarn storybook:serve:dev to be running)
```

## "التقنية المستخدمة"

"المشروع يحتوي على تقنية بسيطة ونظيفة، مع الحد الأدنى من كود البويلر بليت."

"**التطبيق**"

* "[React](https://react.dev/)"
* "[Apollo](https://www.apollographql.com/docs/)"
* "[GraphQL Codegen](https://the-guild.dev/graphql/codegen)"
* [Jotai](https://jotai.org/)
* "[TypeScript](https://www.typescriptlang.org/)"

**الاختبار**

* [Jest](https://jestjs.io/)
* "[Storybook](https://storybook.js.org/)"

**الأدوات**

* [Yarn](https://yarnpkg.com/)
* "[Craco](https://craco.js.org/docs/)"
* [Oxlint](https://oxc.rs/docs/guide/usage/linter.html)

## "الهيكلية"

### "التوجيه"

"[React Router](https://reactrouter.com/) يتعامل مع التوجيه."

لتجنب غير ضروري [re-renders](/l/ar/developers/contribute/capabilities/frontend-development/best-practices-front#managing-re-renders) كل منطق المسارات في 'useEffect' في 'PageChangeEffect'.

### "إدارة الحالة"

[Jotai](https://jotai.org/) يتعامل مع إدارة الحالة.

"راجع [أفضل الممارسات](/l/ar/developers/contribute/capabilities/frontend-development/best-practices-front#state-management) لمزيد من المعلومات حول إدارة الحالة."

## "الاختبار"

"[Jest](https://jestjs.io/) يعمل كأداة لاختبار الوحدات بينما يعمل [Storybook](https://storybook.js.org/) لاختبار المكونات."

"يستخدم Jest بشكل رئيسي لاختبار دوال الأدوات وليس المكونات نفسها."

"Storybook لاختبار سلوك المكونات المعزولة، وكذلك عرض نظام التصميم."
