> ## Documentation Index
> Fetch the complete documentation index at: https://docs.znproject.my.id/llms.txt
> Use this file to discover all available pages before exploring further.

# Install manually

> Install and run PteroStats manually with PM2 or the nodejs-generic egg.

**1. Download this repository**

* Manually: [Download this repository](https://github.com/HirziDevs/PteroStats/archive/refs/heads/main.zip) and extract it.
* Using GIT: Run `git clone https://github.com/HirziDevs/PteroStats.git` in the command line.

**2. Install dependencies and start the app/bot**

Install required dependencies and start the app/bot.

> [tab] Using PM2
>
> [Why use PM2?](https://discordjs.guide/improving-dev-environment/pm2.html)
>
> 1. Run `npm install` in the root directory of the app/bot files.
> 2. Install PM2 using `npm install -g pm2` command.
> 3. Run `pm2 start index.js -n PteroStats` to start the app/bot.

> [tab] Using nodejs-generic egg
>
> Using the [nodejs-generic](https://github.com/pelican-eggs/generic/tree/main/nodejs) egg, just start the server to start the app/bot.

**3. Set up the app/bot**

Answer the prompted questions in the console to set up the app/bot.

![Setup](https://usercontent.catto.pictures/hirzi/b8645828-591d-4d52-b6d8-51f8df60440c.png)

* [Create a panel API key](https://docs.znproject.my.id/pterostats/guides/panel-api-key.md)
* [Find a Discord channel ID](https://docs.znproject.my.id/pterostats/guides/channel-id.md)

## Links

### Support Server

* [Discord](https://discord.znproject.my.id)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.