Wakapi is a server that collects statistics for WakaTime. In this tutorial, we will explain how to install Wakapi on your Void Linux machine.
Before we begin, you need to have some prerequisites installed on your system. You can install them by running the following command:
sudo xbps-install -S git nodejs npm
This installs Git, Node.js, and Npm on your system.
First, we need to clone the repository from GitHub. To do this, run the following command:
git clone https://github.com/muety/wakapi.git
This command will create a folder named wakapi
in your current working directory.
To install the dependencies required by Wakapi, we need to navigate into the wakapi
directory and run the following command:
cd wakapi
npm install
The npm install
command will download and install all the dependencies required by Wakapi.
Next, we need to configure Wakapi to work with our WakaTime account. To do this, we need to edit the config.example.json
file and save it as config.json
.
cp config.example.json config.json
nano config.json
Inside the config.json
file, we need to replace the placeholders with our WakaTime API key and other information.
{
"apiKey": "<WAKATIME_API_KEY>",
"mongoUrl": "mongodb://localhost:27017/wakapi",
"debug": false,
"forbidUserRegistration": false,
"blocklist": []
}
Finally, we can start Wakapi by running the following command:
npm start
This will start the Wakapi server, and it will be available at http://localhost:3000/.
Congratulations! You have successfully installed and configured Wakapi on your Void Linux machine.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!