# Getting Started

{% tabs %}
{% tab title="The Quick way" %}

#### 1. Install the CLI

```bash
npm install -g idylle-cli
```

#### 2. Setting up your project

```bash
idylle new sample
cd sample
npm i
```

#### 3. Start the project

```bash
npm start
```

{% endtab %}

{% tab title="Starting from the bottom" %}

#### 1. Initialise your workspace

```bash
npm init
npm install --save idylle
```

2\. Create your first file `index.js`&#x20;

```bash
touch index.js
```

3\. Write the minimum required

```javascript
const Core = require('idylle').Core;
const app = new Core();

app.start();
```

By default the server's listens on all interfaces `0.0.0.0` on port `8080`. If you check in your browser at `localhost:8000` you should the the famous express's error handling `cannot GET /`.\
The default HTTP router comes from [Express](http://expressjs.com/fr/4x/api.html#router).
{% endtab %}
{% endtabs %}


---

# 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://julien-sarazin.gitbook.io/idylle/getting-started.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.
