68f4cf269d
Created by Github action <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/twentyhq/twenty/pull/22281?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. --> Co-authored-by: github-actions <github-actions@twenty.com>
88 lines
2.0 KiB
Plaintext
88 lines
2.0 KiB
Plaintext
---
|
||
title: Backend Komutları
|
||
icon: terminal
|
||
---
|
||
|
||
## Faydalı Komutlar
|
||
|
||
Bu komutlar packages/twenty-server klasöründen çalıştırılmalıdır.
|
||
Diğer herhangi bir klasörden `npx nx {command} twenty-server` (veya `npx nx run twenty-server:{command}`) çalıştırabilirsiniz.
|
||
|
||
### İlk Kurulum
|
||
|
||
```
|
||
npx nx database:reset twenty-server # setup the database with dev seeds
|
||
```
|
||
|
||
### Sunucuyu Başlatma
|
||
|
||
```
|
||
npx nx run twenty-server:start
|
||
```
|
||
|
||
### Kod Temizleme
|
||
|
||
```
|
||
npx nx run twenty-server:lint # pass --fix to fix lint errors
|
||
```
|
||
|
||
### Test
|
||
|
||
```
|
||
npx nx run twenty-server:test:unit # run unit tests
|
||
npx nx run twenty-server:test:integration # run integration tests
|
||
```
|
||
|
||
Not: Entegrasyon testlerini çalıştırmadan önce veritabanını sıfırlamanız gerekirse `npx nx run twenty-server:test:integration:with-db-reset` komutunu kullanabilirsiniz.
|
||
|
||
### Veritabanını Sıfırlama
|
||
|
||
Veritabanını sıfırlamak ve tohum yüklemek istiyorsanız, aşağıdaki komutu kullanabilirsiniz:
|
||
|
||
```bash
|
||
npx nx run twenty-server:database:reset
|
||
```
|
||
|
||
### Geçişler
|
||
|
||
#### Core/Metadata şemalarında (TypeORM) nesneler için
|
||
|
||
```bash
|
||
npx nx run twenty-server:database:migrate:generate
|
||
```
|
||
|
||
## Teknoloji Yığını
|
||
|
||
Twenty, arka uç için öncelikle NestJS kullanır.
|
||
|
||
Prisma, kullandığımız ilk ORM idi. Ancak, kullanıcıların özel alanlar ve özel nesneler oluşturmasına izin vermek için, ince ayar kontrolü gerektirdiği için alt düzey bir seviye daha mantıklı geldi. Proje şu anda TypeORM kullanmaktadır.
|
||
|
||
İşte teknoloji yığını artık böyle görünüyor.
|
||
|
||
**Çekirdek**
|
||
|
||
* [NestJS](https://nestjs.com/)
|
||
* [TypeORM](https://typeorm.io/)
|
||
* [GraphQL Yoga](https://the-guild.dev/graphql/yoga-server)
|
||
|
||
**Veritabanı**
|
||
|
||
* [Postgres](https://www.postgresql.org/)
|
||
|
||
**Üçüncü Şahıs Entegrasyonları**
|
||
|
||
* [Sentry](https://sentry.io/welcome/) hataları izlemek için
|
||
|
||
**Test**
|
||
|
||
* [Jest](https://jestjs.io/)
|
||
|
||
**Araçlar**
|
||
|
||
* [Yarn](https://yarnpkg.com/)
|
||
* [Oxlint](https://oxc.rs/docs/guide/usage/linter.html)
|
||
|
||
**Geliştirme**
|
||
|
||
* [AWS EKS](https://aws.amazon.com/eks/)
|