# API Hizmetinin Kurulması

API hizmeti, istemcilerin internete çıkamayan sadece sunucunun internete çıkabildiği durumlarda kurulur. Kurulumu oldukça basittir.&#x20;

### Gereksinimler

* NodeJS 18 veya 20
* HakedişPlus API Uygulaması

### Kurulum

* NodeJS'i sunucuya kurunuz.
* İndirdiğiniz API uygulamasını herhangi bir klasöre kopyalayınız.
* Komut uygulamasını (CMD) açınız.
* `npm i pm2 -g` komutu ile pm2 paketini kurunuz.
* `cd` komutu ile API uygulamasının olduğu klasöre gidiniz.
* `pm2 start hakedisplusapi.js` komutu ile API uygulamasını başlatınız.
* `pm2 save` komutu ile API sisteminin başlangıçta açılmasını sağlayabilirsiniz.

{% hint style="warning" %}
API çalıştırıldıktan sonra iç ağa 5453 portuna güvenlik duvarından izin verilmelidir. İstemciler HTTP protokolü üzerinden ilgili API son ucuna erişmesi gerekmektedir.&#x20;
{% endhint %}

{% hint style="info" %}
Tüm kurulum ve API kurulumu bittikten sonra istemcilerin HakedişPlus'ı açmaları gerekir. API adresi olarak <http://sunucu_ip_adresi:5453> şeklinde olmalıdır.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.oska.com.tr/kurulum/yapilandirmalar/api-hizmetinin-kurulmasi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
