Giter VIP home page Giter VIP logo

rartracker's Introduction

rartracker

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

Version

0.2.1

Author

the swedish torrent king

Feature highlights

  • Super responsive GUI thanks to the SPA-application nature of AngularJS
  • Advanced admin-features for monitoring site activity, handling reports and multi-deleting torrents.
  • Many features suitable for scene only trackers
  • Awesome features like bonus-system, leech bonus, seed-time, request system and rss-system.
  • Highly skinnable and mobile friendly design with Bootstrap CSS
  • Very clean code to grasp for developers

Installation

1. Install Node.js/npm and Git

Windows:

Ubuntu/Debian:

$ 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
$ bower install
$ gulp dist

3. Import database (databse/database.sql)

Configurations

1. Basic config

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

<?php
$database = 'mysql';
$host = '127.0.0.1';
$dbname = 'rartracker';
$username = 'root';
$password = '';

Some site settings in api/Config.php and app/app.config.js

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

  • Note that updating the salts will make current registered accounts unusable, you'd want to log in and create invite codes (step 4) before changing salts and finally registering new accounts.
  • $passwordSalt and $cookieSalt in User.php should be updated with new random hashes.

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-xcache 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

Permissions

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

  • torrents/
  • subs/
  • img/imdb/

Recommended MariaDB settings

This is for making the fulltext search work

[mysqld]
ft_min_word_len=1
ft_stopword_file='stopword_file.txt'
tmp_table_size=2G
max_heap_table_size=2G

Crontab settings (crontab -e)

12      *       *       *       *       wget -O /dev/null http://127.0.0.1/api/v1/run-leechbonus
*/20    *       *       *       *       wget -O /dev/null http://127.0.0.1/api/v1/run-cleanup
0       0       *       *       *       wget -O /dev/null http://127.0.0.1/api/v1/fetch-tvdata
0       0       *       *       *       wget -O /dev/null http://127.0.0.1/api/v1/fetch-moviedata
0       0       *       *       5       wget -O /dev/null http://127.0.0.1/api/v1/run-bonus
0       20      *       *       *       wget -O /dev/null http://127.0.0.1/api/v1/run-statistics

Developing and deploying

Developing

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

Deploying

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

The app/ folder should never be exposed in live production, since its html/js is beeing packaged into dist/

License

WTFPL

rartracker's People

Contributors

swetorrentking avatar

Stargazers

My HDD avatar

Watchers

James Cloos avatar I'm an OSK user, are you? avatar My HDD avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.