# Integration - step 1

We are assuming that you are starting with the sandbox on the demo environment.\
When you are ready to move to the production just apply the same instructions: essentially you will be removing the word "demo" from the urls and endpoints, like instead of "api.demo.escs.io" you will use "api.escs.io". Find our more information here: [Moving to production](https://app.gitbook.com/o/-MBTzNswyYG20uBURMs7/s/-MAfYp0johoPRZW2PhVp/~/edit/~/changes/108/general/moving-to-production).

[client.demo.escs.io](https://client.demo.escs.io/) is your main entry point. \
Here you can register games, create and edit competitions, view stats, manage your account and more.

## Registration.

1. Go to the [client.demo.escs.io](https://client.demo.escs.io/) and create your account.
2. After the login you see this friendly introduction:

![Friendly introduction](https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2FYnf20j3r5I9eov6o72ls%2FScreenshot%202022-07-16%20235640.png?alt=media\&token=773c04bd-daf9-441b-bf7d-e284fd302f92)

## Creating a game

The information you enter here is important since it will be shown to your players.

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2FPlHMrjnCSAT9VBkJCYh7%2Fimage.png?alt=media&#x26;token=48777f3a-14a9-47ac-80e7-3c5e242af3ed" alt=""><figcaption><p>Please complete this form and press "Create app".</p></figcaption></figure>

Choose "Public tournament", enter the name and description of the game. \
When you are done, click "Create app" button.&#x20;

Now you probably see something like this screen (just without the logo  - we did not add it). \
If not - something is terribly wrong and all is lost.

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2Fyqy6FYxdfuetebVE65GP%2Fimage.png?alt=media&#x26;token=5a43bd46-911e-40f0-a578-1f0f32e472e0" alt=""><figcaption><p>Click the tab "Scores"</p></figcaption></figure>

Now click the tab "Scores" and setup your first game score: the basic metric that measures how good your players are in your awesome game. For example, in Tetris it's points. "Sort" defines if higher values are better (choose "Desc" for that) or lower values are better (choose "Asc" for that). Score name is shown to the players.  You can have as many scores as you want. Define just one for now.&#x20;

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2FjIktZXvO1458kxy7TezN%2Fimage.png?alt=media&#x26;token=a8eee756-072c-4b33-8cda-ed2200e2f847" alt=""><figcaption><p>Define your fist score as in the example. Choose "Default"</p></figcaption></figure>

When you are done, click "Save" button.&#x20;

Now click "Referrals" in the top menu.

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2FPcfIMiT1yg8ruEtOVBiF%2Fimage.png?alt=media&#x26;token=c332a3c9-c1e7-4f4b-a538-3b1859ff1ff1" alt=""><figcaption><p>Click "Referrals" and create your first referral.</p></figcaption></figure>

Click "Add new referral" , enter any name and press "Create"

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2F3ddv7gRKmyRrSV8aXdv4%2Fimage.png?alt=media&#x26;token=9408d5d7-534c-46f4-ad1b-5647b137e240" alt=""><figcaption><p>Like here.</p></figcaption></figure>

Go back to "Apps" and click "View details" on your game.

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2FqwwN9tXYx8NchtnV16eQ%2Fimage.png?alt=media&#x26;token=990f2cc1-57b0-467d-88f8-0632f3f71895" alt=""><figcaption><p>Click"View details".</p></figcaption></figure>

Now click "VIEWS" tab and create your first view.

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2FGMClFNi5jDu5XMEqpVaQ%2Fimage.png?alt=media&#x26;token=f100aea1-9855-4587-9bcd-96b6156e9aac" alt=""><figcaption><p>Click "VIEWS" tab and click "Create view!</p></figcaption></figure>

Enter any name you want. Don't change the game. Choose the referral that you just created. Choose the integration type that corresponds to your game. Leave everything else as it is for now. You can change it later. Then click "Submit".

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2F0eOp2e3RHWQhcKsGmyRE%2FScreenshot%202026-03-27%20173631.png?alt=media&#x26;token=16c786b5-2db8-4400-a3d1-8d5717c35d0a" alt=""><figcaption><p>Enter parameters similar to the screenshot and click "Submit"</p></figcaption></figure>

The result should look something like on the screenshot below. You need the public key and the player\_base\_url for your integration in the next step.

<figure><img src="https://3853901254-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAfYp0johoPRZW2PhVp%2Fuploads%2Fg0jXycVTNiBrkKS8TBuV%2FScreenshot%202026-03-27%20173722.png?alt=media&#x26;token=8c8d06a4-dd10-4c8c-a5ee-7049f4597ce6" alt=""><figcaption><p>The important information is in the JS field in the parenthesis.</p></figcaption></figure>

Copy your **public key** and the **player\_base\_url** and go to the ["Integration - Step 2"](https://docs.escs.io/integration-step-2).
