> For the complete documentation index, see [llms.txt](https://builtwithluv.gitbook.io/mockit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://builtwithluv.gitbook.io/mockit/advance/creating-a-custom-server.md).

# Creating a custom server

Instead of tying you down to mockit, you can also create your own server and use mockit's core functionalities.

## Creating your own custom server

{% code title="server.js" %}

```javascript
import express from 'express';
import mockit from '@builtwithluv/mockit';

const app = express();

mockit(app);

app.get('/my-own-endpoint', (req, res) => res.json({ hello: 'world' }));

app.listen(3000);
```

{% endcode %}

{% hint style="warning" %}
Creating your own custom endpoints will not be detected on mockit's client. However, your custom endpoints will be reachable.
{% endhint %}
