A modern front and backend bittorrent tracker written in AngularJS and PHP.

Current version



the swedish torrent king

Feature highlights


1. Install Node.js/npm and Git



$ sudo apt-get install -y nodejs
$ sudo apt-get install -y git-core

2. Install dependencies

From the project folder install all build script packages and all 3rd party dependencies

$ npm install --global bower
$ npm install --global gulp-cli
$ npm install
$ npm run dist

3. Import database (databse/database.sql)


1. Basic config

Create the file secrets.php in the api/ folder.

$database = 'mysql';
$host = '';
$dbname = 'rartracker';
$username = 'root';
$password = '';

Some site settings in api/Config.php and app/app.config.js should be changed!

2. Generate new unique salt hashes (optional for security)

3. Create admin accounts

Use built in account named "System" password: "password" to create invites and register new admin-accounts The "System" account must remain as a parked account and have Staff rights because it's used as deleter of torrents, sender of PM and creation of forum topics etc. Change System password.

Server settings

Recommended packages

php5 apache2 mariadb-server libapache2-mod-php5 php5-mysql memcached php5-curl php5-memcached

Enable rewrite module and change AllowOverride from "None" to "All" in httpd.conf in order for .htaccess to work

a2enmod rewrite


The following folders needs to be created and be given write permission:

Recommended MariaDB settings

This is for making the fulltext search work


Crontab settings (crontab -e)

12      *       *       *       *       wget -O /dev/null
*/20    *       *       *       *       wget -O /dev/null
0       0       *       *       *       wget -O /dev/null
0       0       *       *       5       wget -O /dev/null
0       20      *       *       *       wget -O /dev/null

Language support

The default language is English, but if you want the back and front end to default to another of the available languages you need to change the default language variable in Config.php and app.config.js. If the user changes the display language, the default language will still be used for site wide logs and automatic messages.

Developing and deploying


In the project folder run npm run watch. This will lauch a watcher that continuously build the code into the dist/.


In the project folder run npm run dist and the code will be minified and scrambled, a JsHint check will also be made.

The following folders should not exist in production. The bundles contains everything needed. app/ bower_components/ node_modules/