---
title: Hızlı Başlangıç
description: Admin uygulaması geliştirmeye hızlı başlangıç rehberi
---

Bu rehber size [ikas CLI](./admin-app/ikas-cli) kullanarak ilk uygulamanızı oluşturma sürecinde adım adım rehberlik edecek.

<Callout type="info">
## Öğrenecekleriniz

- ikas CLI'yi kurmayı ve yapılandırmayı
- Yeni bir uygulama projesi oluşturmayı
- Proje yapısını anlamayı
</Callout>

---

## Gereksinimler

Aşağıdaki koşulların sağlandığından emin olun:

- Öncelikle bir ikas Partner hesabınızın olması ve test mağazası oluşturmanız gerekiyor. Eğer yoksa, bir [ikas Partner hesabı oluşturun](https://builders.ikas.com/tr/docs/ikas-partner).
- En son Node.js sürümünü kullandığınızdan emin olun.

```bash
node --version
```

<Callout type="warning">
**Önemli**: Node.js v16+ gereklidir. Eski sürümler desteklenmemektedir. 
[nodejs.org](https://nodejs.org/tr/download/) adresinden güncel sürümü indirin.
</Callout>

---

## Adım 1: ikas CLI'yi Kurun

Uygulama geliştirmek için gerekli CLI aracını yükleyin ve kurulumu doğrulayın:

```bash
npm i -g ikas

ikas --version
```

---

## Adım 2: İlk Uygulamanızı Oluşturun

Yeni bir uygulama projesi oluşturun:

1. Uygulamayı oluşturmak istediğiniz dizine gidin. Uygulamanız yeni bir alt dizinde oluşturulacaktır.
2. Aşağıdaki komutu çalıştırın:
Bu komut, geliştirme sürecinizi hızlandırmak için bilgisayarınıza bir başlangıç projesi indirir.


```bash
ikas app init
```

3. Uygulamanız için bir ad girin:

```console title="Terminal"
$ ikas app init

🎉 Welcome! Let's start by naming your app. You can change this later.

? What should we call your app?
```

4. Uygulama framework'ünü seçin:

```console title="Terminal"
$ ikas app init

🎉 Welcome! Let's start by naming your app. You can change this later.

✔ What should we call your app?
 my-new-app

? For your template, which framework do you want use?
❯ Build a Next.js app (recommended)

↑↓ navigate • ⏎ select
```

5. Uygulama türünü seçin:

Bu adımda ikas CLI, oluşturmak istediğiniz uygulama türünü seçmenizi ister.

<Callout type="info" title="Uygulama Türleri">
<strong>Starter App</strong>: UI, OAuth ve SDK içeren, Next.js tabanlı full-stack uygulama şablonu. Çoğu uygulama için önerilen başlangıç noktasıdır.

<strong>Dashboard Actions App</strong>: ikas yönetim paneline özel aksiyon butonları ekleyen uygulama şablonu.

<strong>Starter App with subscription</strong>: Starter App'e plan satışı ve abonelik yönetimi eklenmiş şablon. Uygulamanızı ücretli planlarla sunacaksanız bunu seçin.
</Callout>



```console title="Terminal"
$ ikas app init

🎉 Welcome! Let's start by naming your app. You can change this later.

✔ What should we call your app?
 my-new-app

✔ For your template, which framework do you want use?
Build a Next.js app (recommended)

? Which type of app do you want to build?
❯ Starter App (recommended)
  Dashboard Actions App
  Starter App with subscription

↑↓ navigate • ⏎ select
```

6. Admin Uygulaması oluşturma seçimi:

Bu adımda CLI, ikas Partners panelinizde yeni bir uygulama oluşturmak mı istediğinizi ya da hesabınızdaki mevcut uygulamayı kullanmak isteyip istemediğinizi sorar. Yeni bir uygulama oluşturmak için "Create new app" seçeneğini seçin.

```console title="Terminal"
$ ikas app init

🎉 Welcome! Let's start by naming your app. You can change this later.

✔ What should we call your app?
 my-new-app

✔ For your template, which framework do you want use?
Build a Next.js app (recommended)

✔ Which type of app do you want to build?
Starter App (recommended)

✔ App template downloaded

✔ Dependencies installed

✔ Sample app initialized successfully

? Do you want to create a new app or use an existing one?
❯ Create new app
  Use existing app

↑↓ navigate • ⏎ select
```

7. API yetki kapsamlarını seçin:

Uygulamanızın erişebileceği ikas API kapsamlarını seçin. Bu kapsamlar, uygulamanızın hangi verilere erişebileceğini belirler. Varsayılan olarak tüm kapsamlar seçili gelir; ihtiyacınız olmayanları boşluk tuşuyla kaldırın.

<Callout type="info" title="API Yetki Kapsamları">
**Read Permissions**: Verileri okuma yetkisi (Campaigns, Customers, Inventories, Orders, Products)

**Write Permissions**: Verileri yazma/güncelleme yetkisi (Campaigns, Customers, Inventories, Orders, Products, Storefront)

Geliştiriciler, uygulamalarının ihtiyaç duyduğu minimum yetkileri seçmelidir.
</Callout>

```console title="Terminal"
$ ikas app init

🎉 Welcome! Let's start by naming your app. You can change this later.

✔ What should we call your app?
 my-new-app

✔ For your template, which framework do you want use?
Build a Next.js app (recommended)

✔ Which type of app do you want to build?
Starter App (recommended)

✔ App template downloaded

✔ Dependencies installed

✔ Sample app initialized successfully

✔ Do you want to create a new app or use an existing one?
Create new app
? Select app scopes
❯◉ Read Campaigns
 ◉ Read Customers
 ◉ Read Inventories
 ◉ Read Orders
 ◉ Read Products
 ◉ Write Campaigns
 ◉ Write Customers
 ◉ Write Inventories
 ◉ Write Orders
 ◉ Write Products

↑↓ navigate • space select • a all • i invert • ⏎ submit
```

8. Tebrikler! Uygulamanız hazır:

CLI, uygulamayı ikas Partners panelinizde oluşturur, `.env` dosyasını günceller ve size uygulama adını, Client ID değerini, maskelenmiş Client Secret değerini ve sonraki adımları gösterir.

```console title="Terminal"
$ ikas app init

🎉 Welcome! Let's start by naming your app. You can change this later.

✔ What should we call your app?
 my-new-app

✔ For your template, which framework do you want use?
Build a Next.js app (recommended)

✔ Which type of app do you want to build?
Starter App (recommended)

✔ App template downloaded

✔ Dependencies installed

✔ Sample app initialized successfully

✔ Do you want to create a new app or use an existing one?
Create new app
✔ Select app scopes
Read Campaigns, Read Customers, Read Inventories, Read Orders, Read Products, Write Campaigns, Write
 Customers, Write Inventories, Write Orders, Write Products, Write Storefront
✔ App created

✔ App config saved

✔ .env file updated successfully

✔ Your app is ready!

App Name: my-new-app
Client ID: 0b6d3c1e-5a4f-4c2b-9e7d-2f8a1b3c4d5e
Client Secret: ********************7f3a
App Directory: my-new-app

TODO - Next steps:
  - `cd my-new-app` into the app directory
  - run `ikas app dev` to route traffic to your app
  - open your favourite IDE and start developing
```

<Callout type="success" title="Uygulama Başarıyla Oluşturuldu">
**Sonraki Adımlar:**
1. `cd [uygulama-adı]` ile uygulama klasörüne geçin
2. `ikas app dev` ile geliştirme sunucusunu başlatın
3. Favori IDE'nizi açıp geliştirmeye başlayın

**.env dosyası otomatik olarak Client ID ve Client Secret ile yapılandırılmıştır.**
</Callout>


Editörü açtığınızda görünecek olan proje yapısı:

<img className="mx-auto my-6 rounded-lg border border-zinc-200 shadow-sm dark:border-zinc-800" src="/media/ikas-partners-photo-quick-start/sample-app-directory.png" alt="ikas app init terminal çıktısı" width="1024" height="600" />


---

## Sonraki Adımlar

**Tebrikler!** İlk ikas uygulamanızı başarıyla oluşturdunuz. Şimdi şunları yapabilirsiniz:


- **[Geliştirme Ortamı](./admin-app/development)** - Development workflow'u öğrenin
- **[CLI Komutları](./admin-app/ikas-cli)** - CLI komutlarını öğrenin