Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.

Commit b69a369

Browse files
committed
updated docs
1 parent af6c71e commit b69a369

File tree

9 files changed

+95
-66
lines changed

9 files changed

+95
-66
lines changed

README.md

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,32 @@
11
# Torrust Documentation
22

33
## Introduction
4+
Torrust is an open source project that brings you all the tools you need to host your own (private) online torrent database.
45

5-
Torrust is an open source BitTorrent tracker developed using the Rust language. With Torrust, you can upload torrents and supply additional information (such as a description and images) for other users to view and download.
6+
### Project structure
7+
Torrust is split up into three separate applications.
68

7-
### Repositories
9+
- [__Torrust Backend__](https://github.com/torrust/torrust-web-backend): A REST API written in Rust with the Actix web framework that acts as a backend for the Torrust Frontend.
10+
- [__Torrust Frontend__](https://github.com/torrust/torrust-web-frontend): A Vue application where torrents can be uploaded and downloaded.
11+
- [__Torrust Tracker__](https://github.com/torrust/torrust-tracker): A UDP based torrent tracker built with Rust.
812

9-
* <a href="https://github.com/torrust/docs">https://github.com/torrust/docs</a> - Torrust Documentation.
10-
* <a href="https://github.com/torrust/torrust">https://github.com/torrust/torrust</a> - Torrust RESTful API.
11-
* <a href="https://github.com/torrust/torrust-web">https://github.com/torrust/torrust-web</a> - Torrust Web.
13+
### Features
14+
- [X] Email / Password authentication
15+
- [X] Self-hosted Private Tracker
16+
- [X] Torrent Uploading / Downloading
17+
- [X] No external services needed
18+
- [X] Completely written in Rust
1219

13-
## Installation
20+
### Screenshots
21+
![Web UI Category page](docs/img/web-ui.png)
22+
![Web UI Torrent page](docs/img/web-ui-torrent.png)
1423

24+
# Installation
25+
26+
## Torrust web + tracker
27+
Please follow our [guide](https://torrust.github.io/torrust-documentation/installation/).
28+
29+
## Torrust Documentation site
1530
### Prerequisites (installed)
1631

1732
- [Python](https://www.python.org/)
@@ -27,7 +42,7 @@ Clone repo:
2742
git clone https://github.com/torrust/docs.git
2843
```
2944

30-
## Usage
45+
# Usage
3146

3247
### Run Development
3348

@@ -50,3 +65,7 @@ mkdocs build
5065
```
5166

5267
Publish the newly built docs/site folder using NGINX or Apache.
68+
69+
## Contributing
70+
Please report any bugs you find to our issue tracker. Ideas and feature requests are welcome as well!
71+
Any pull request targeting existing issues would be very much appreciated.

docs/img/web-ui-torrent.png

358 KB
Loading

docs/img/web-ui.png

35.2 KB
Loading

docs/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# About
22

33
## Introduction
4-
Torrust is an open source BitTorrent tracker developed using the Rust language.
5-
With Torrust, you can upload torrents and supply additional information (such as a description and images) for other users to view and download.
4+
Torrust is an open source project that brings you all the tools you need to host your own (private) online torrent database.
65

76
## Project structure
87
Torrust is split up into three separate applications.
@@ -13,14 +12,15 @@ Torrust is split up into three separate applications.
1312

1413
## Features
1514
- [X] Email / Password authentication
16-
- [X] E-mail verification
15+
- [X] Self-hosted Private Tracker
1716
- [X] Torrent Uploading / Downloading
1817
- [X] No external services needed
1918
- [X] Completely written in Rust
2019

2120
## Screenshots
22-
![Web UI Category page](img/web-ui.png){ align=center }
21+
![Web UI Category page](img/web-ui.png)
22+
![Web UI Torrent page](img/web-ui-torrent.png)
2323

2424
## Contributing
2525
Please report any bugs you find to our issue tracker. Ideas and feature requests are welcome as well!
26-
Any pull request targeting existing issues would be very much appreciated.
26+
Any pull request targeting existing issues would be very much appreciated.

docs/installation.md

Lines changed: 47 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,7 @@ This guide walks you through how to install Torrust on a Linux system. Make sure
1010
- [Node.js](https://nodejs.org/en/) - A JavaScript runtime
1111
- [NPM](https://www.npmjs.com/) - Package manager for Node/JavaScript
1212

13-
14-
## Cloning repositories
15-
To get the code of all the applications, execute the following commands.
16-
These will download the repositories to the directory you're currently in.
17-
```bash
18-
git clone https://github.com/torrust/torrust-web-frontend
19-
git clone https://github.com/torrust/torrust-web-backend
20-
git clone https://github.com/torrust/torrust-tracker
21-
```
22-
23-
## Setting up the Torrust Web Frontend
13+
## Setting up Nginx
2414
### Installing Nginx
2515
The frontend can't run on it's own and needs and external webserver like apache or nginx.
2616
In this guide we will be using nginx, so lets install that first.
@@ -36,9 +26,9 @@ Create a file in `/etc/nginx/sites-available/` called `torrust.conf` with the fo
3626
```nginx
3727
server {
3828
listen 80;
39-
server_name torrust.dutchbits.nl;
29+
server_name torrust.dutchbits.nl; # set your own domain name here!!
4030
41-
root /opt/torrust/torrust-web/dist/;
31+
root /opt/torrust/torrust-web-frontend/dist/;
4232
4333
location / {
4434
try_files $uri $uri/ /index.html;
@@ -54,31 +44,22 @@ Enable the configuration by making a symlink to the config in the `sites-enabled
5444
ln -s /etc/nginx/sites-available/torrust.conf /etc/nginx/sites-enabled/
5545
```
5646

57-
After this you can test the validity of the config by executing `nginx -t`,
47+
After this you can test the validity of the config by executing `nginx -t`,
5848
if the config is valid you can safely reload Nginx to make the new configuration active.
5949
```bash
6050
systemctl reload nginx
6151
```
6252

63-
### Building the Frontend
64-
Next up is building the frontend, we'll first install all of the dependecies.
65-
```bash
66-
cd /opt/torrust-web-frontend
67-
npm i
68-
```
53+
## Setting up the Torrust Tracker
54+
### Getting the sources
55+
If you prefer to just download the compiled binaries, you can get the [latest release here](https://github.com/torrust/torrust-tracker/releases). Else:
6956

70-
Edit the `.env.production` file to look like this, and after that we can start the build.
71-
```env
72-
VUE_APP_API_BASE_URL=/api
73-
```
57+
While in `/opt/torrust`:
7458
```bash
75-
npm run build
59+
git clone https://github.com/torrust/torrust-tracker.git
7660
```
77-
After this command succesfully completed a built version of the frontend is in the `dist` folder.
78-
These files are served by Nginx as specified by the `root` directive in the created config.
7961

80-
## Setting up Torrust Tracker
81-
### Building
62+
### Building (Skip if you downloaded the binaries)
8263
Build the application by running the following. The binary can be found in `target/release/` after completion.
8364
```bash
8465
cd /opt/torrust/torrust-tracker
@@ -96,7 +77,7 @@ torrust_api = "<your randomly generated string>"
9677
```
9778

9879
### Running the Tracker
99-
After building and configuring the Tracker it's ready to be run.
80+
After building and configuring the Tracker it's ready to be run.
10081
It's recommended to either run it in a screen / tmux session or to create a systemd service for it.
10182

10283
```bash
@@ -106,7 +87,15 @@ tmux # open a new tmux session
10687
> Press `CTRL+B D` to exit the tmux session without killing it.
10788
10889
## Setting up the Torrust Backend
109-
### Building
90+
### Getting the sources
91+
If you prefer to just download the compiled binaries, you can get the [latest release here](https://github.com/torrust/torrust-web-backend/releases). Else:
92+
93+
While in `/opt/torrust`:
94+
```bash
95+
git clone https://github.com/torrust/torrust-web-backend.git
96+
```
97+
98+
### Building (Skip if you downloaded the binaries)
11099
Before building we have to create the SQLite database and run the migrations. Install the `sqlx-cli` and setup the database.
111100
```bash
112101
cd /opt/torrust/torrust-web-backend
@@ -150,4 +139,30 @@ Just like the Tracker it should be run in a screen / tmux session or as a system
150139
tmux # open a new tmux session
151140
./target/release/torrust-web-backend
152141
```
153-
> Press `CTRL+B D` to exit the tmux session without killing it.
142+
> Press `CTRL+B D` to exit the tmux session without killing it.
143+
144+
## Setting up the Torrust Web Frontend
145+
## Getting the sources
146+
```bash
147+
git clone https://github.com/torrust/torrust-web-frontend
148+
```
149+
150+
### Building the Frontend
151+
Next up is building the frontend, we'll first install all of the dependecies.
152+
153+
While in `/opt/torrust`:
154+
```bash
155+
cd /opt/torrust-web-frontend
156+
npm i
157+
```
158+
159+
Edit the `.env.production` file to look like this, and after that we can start the build.
160+
```env
161+
VUE_APP_API_BASE_URL=/api
162+
```
163+
```bash
164+
npm run build
165+
```
166+
After this command succesfully completed a built version of the frontend is in the `dist` folder.
167+
These files are served by Nginx as specified by the `root` directive in the created config.
168+

docs/torrust-tracker/about.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Torrust Tracker
22

3-
[![Torrust - torrust-website-backend](https://img.shields.io/static/v1?label=Torrust&message=torrust-tracker&color=blue&logo=github)](https://github.com/Torrust/torrust-website-backend)
4-
[![Build Status](https://app.travis-ci.com/torrust/torrust-tracker.svg?branch=master)](https://app.travis-ci.com/torrust/torrust-tracker)
3+
[![Torrust - torrust-website-backend](https://img.shields.io/static/v1?label=Torrust&message=torrust-tracker&color=blue&logo=github)](https://github.com/torrust/torrust-website-backend)
54

65
__Torrust Tracker__ is a feature rich UDP based torrent tracker built with Rust.
76

docs/torrust-tracker/build.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@
55
- [Rust](https://www.rust-lang.org/) - Compiler toolchain & Package Manager (cargo)
66

77
### Getting the sources
8+
If you prefer to just download the compiled binaries, you can get the [latest release here](https://github.com/torrust/torrust-tracker/releases). Else:
9+
810
```bash
911
git clone https://github.com/torrust/torrust-tracker.git
1012
```
1113

12-
If you prefer to just download the code, you can get the [latest codebase here](https://github.com/torrust/torrust-tracker/archive/master.zip).
13-
14-
### Building
15-
This step will download all required dependencies (from [crates.io](https://crates.io/)) and build them as well.
16-
17-
Building should always be done with the latest Rust compiler.
18-
14+
### Building (Skip if you downloaded the binaries)
15+
Build the application by running the following. The binary can be found in `target/release/` after completion.
1916
```bash
20-
cd torrust-tracker
17+
cd /opt/torrust/torrust-tracker
2118
cargo build --release
2219
```
2320

docs/torrust-web-backend/about.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# About
22

33
[![Torrust - torrust-website-backend](https://img.shields.io/static/v1?label=Torrust&message=torrust-website-backend&color=blue&logo=github)](https://github.com/Torrust/torrust-website-backend)
4-
[![Build Status](https://app.travis-ci.com/torrust/torrust.svg?branch=master)](https://app.travis-ci.com/torrust/torrust)
54

65
Torrust Backend is a REST API written in Rust with the Actix Web framework.
76
It handles all of the logic for the Torrust Frontend application.

mkdocs.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
site_name: Torrust Documentation
2-
site_url: https://docs.torrust.com/
2+
site_url: https://torrust.com/
33
site_author: Torrust Developers
44
site_description: Torrust Documentation
55

66
repo_name: torrust/docs
7-
repo_url: https://github.com/torrust/docs
7+
repo_url: https://github.com/torrust/torrust-documentation
88

99
theme:
1010
palette:
@@ -16,28 +16,28 @@ theme:
1616
nav:
1717
- Introduction: index.md
1818
- 'Installing Torrust': installation.md
19+
- 'Torrust Tracker':
20+
- About: torrust-tracker/about.md
21+
- Usage: torrust-tracker/usage.md
22+
- Building: torrust-tracker/build.md
23+
- Config: torrust-tracker/config.md
24+
- 'Tracking Modes': torrust-tracker/tracking_modes.md
25+
- API: torrust-tracker/api.md
1926
- 'Torrust Web Backend':
2027
- About: torrust-web-backend/about.md
2128
- Usage: torrust-web-backend/usage.md
2229
- Building: torrust-web-backend/build.md
2330
- Config: torrust-web-backend/config.md
24-
- API:
31+
- API:
2532
- Overview: torrust-web-backend/api.md
2633
- 'User routes': torrust-web-backend/user_api.md
2734
- 'Torrent routes': torrust-web-backend/torrent_api.md
2835
- 'Category routes': torrust-web-backend/category_api.md
29-
- 'Torrust Tracker':
30-
- About: torrust-tracker/about.md
31-
- Usage: torrust-tracker/usage.md
32-
- Building: torrust-tracker/build.md
33-
- Config: torrust-tracker/config.md
34-
- 'Tracking Modes': torrust-tracker/tracking_modes.md
35-
- API: torrust-tracker/api.md
3636
- 'Torrust Web Frontend':
3737
- About: torrust-web-frontend/about.md
3838

3939

4040
markdown_extensions:
4141
- attr_list
4242
- pymdownx.tasklist:
43-
custom_checkbox: true
43+
custom_checkbox: true

0 commit comments

Comments
 (0)