Skip to content

Commit 2962fc4

Browse files
committed
Initial source code
1 parent 82b7feb commit 2962fc4

16 files changed

Lines changed: 1213 additions & 0 deletions

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
[*.md]
11+
trim_trailing_whitespace = false
12+
[*.json]
13+
indent_size = 2

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules
2+
/dist
3+
/test_dist

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,27 @@
11
# wt-tracker
22
High performance WebTorrent tracker
3+
## Build instructions
4+
5+
```sh
6+
npm install
7+
npm run build
8+
```
9+
10+
## Run instructions
11+
12+
```sh
13+
node dist/run-uws-tracker.js [config.json]
14+
```
15+
16+
or
17+
18+
```sh
19+
node start [config.json]
20+
```
21+
22+
## Configuration
23+
24+
See [config.json](sample/config.json).
25+
26+
## Statistics
27+
Under `/stats.json` URL

lib/declarations.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Copyright 2019 Novage LLC.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
declare module "uWebSockets.js";

0 commit comments

Comments
 (0)