Files
twenty/packages/twenty-docs/l/ar/developers/contribute/capabilities/backend-development/server-commands.mdx
T
cd73088be6 i18n - docs translations (#19925)
Created by Github action

Co-authored-by: github-actions <github-actions@twenty.com>
2026-04-21 10:57:27 +02:00

88 lines
2.4 KiB
Plaintext

---
title: الأوامر الخلفية
icon: terminal
---
## الأوامر المفيدة
يجب تنفيذ هذه الأوامر من مجلد packages/twenty-server.
من أي مجلد آخر يمكنك تشغيل `npx nx {command} twenty-server` (أو `npx nx run twenty-server:{command}`).
### إعداد المرة الأولى
```
npx nx database:reset twenty-server # إعداد قاعدة البيانات مع بذور التطوير
```
### بدء الخادم
```
npx nx run twenty-server:start
```
### Lint
```
npx nx run twenty-server:lint # مرر --fix لإصلاح أخطاء التدقيق
```
### تجربة
```
npx nx run twenty-server:test:unit # تشغيل اختبارات الوحدة
npx nx run twenty-server:test:integration # تشغيل اختبارات التكامل
```
ملاحظة: يمكنك تشغيل `npx nx run twenty-server:test:integration:with-db-reset` في حالة احتياجك لإعادة تعيين قاعدة البيانات قبل تشغيل اختبارات التكامل.
### إعادة تعيين قاعدة البيانات
إذا أردت إعادة تعيين قاعدة البيانات وزرع بعض البيانات فيها، يمكنك تشغيل الأمر التالي:
```bash
npx nx run twenty-server:database:reset
```
### عمليات الترحيل
#### للكائنات داخل مخططات Core/Metadata (TypeORM)
```bash
npx nx run twenty-server:database:migrate:generate
```
## "التقنية المستخدمة"
تستخدم Twenty بشكل أساسي NestJS للواجهة الخلفية.
Prisma كان أول ORM استخدمناه. ولكن للسماح للمستخدمين بإنشاء الحقول والعناصر المخصصة، كان من المنطقي استخدام مستوى أقل حيث نحتاج إلى تحكم دقيق. الآن يستخدم المشروع TypeORM.
إليك شكل العناصر التقنية الآن.
**النواة**
* [NestJS](https://nestjs.com/)
* [TypeORM](https://typeorm.io/)
* [GraphQL Yoga](https://the-guild.dev/graphql/yoga-server)
**قاعدة البيانات**
* [Postgres](https://www.postgresql.org/)
**التكاملات مع جهات خارجية**
* [Sentry](https://sentry.io/welcome/) لتتبع الأخطاء
**الاختبار**
* [Jest](https://jestjs.io/)
**الأدوات**
* [Yarn](https://yarnpkg.com/)
* [Oxlint](https://oxc.rs/docs/guide/usage/linter.html)
**التطوير**
* [AWS EKS](https://aws.amazon.com/eks/)