https://github.com/nabigraphics/pink-wt
Easy WebTorrent Sharing with React Web Application
https://github.com/nabigraphics/pink-wt
javascript mongodb mongoose react socket-io webrtc webtorrent
Last synced: 4 months ago
JSON representation
Easy WebTorrent Sharing with React Web Application
- Host: GitHub
- URL: https://github.com/nabigraphics/pink-wt
- Owner: nabigraphics
- License: mit
- Created: 2017-08-28T09:00:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-15T18:49:22.000Z (about 8 years ago)
- Last Synced: 2025-09-25T15:42:19.625Z (10 months ago)
- Topics: javascript, mongodb, mongoose, react, socket-io, webrtc, webtorrent
- Language: JavaScript
- Homepage:
- Size: 31.4 MB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://travis-ci.org/nabigraphics/pink-wt)
[](https://opensource.org/licenses/mit-license.php)
# Start
```
$ git clone https://github.com/nabigraphics/pink-wt
$ cd pink-wt
$ npm install
$ touch server/config.js
$ npm run build
$ npm start
```
# Scripts
```
$ npm run dev-server // development nodemon server start.
$ npm run dev // webpack development bundling.
$ npm run start // server start.
$ npm run build // webpack production build.
```
## server/config.js
```
module.exports = {
port:Number,
socket:Number,
socketClient:String,
mongoDB:String,
TRACKERS:Array,
}
```
### port `Type:Number`
Application Port
### socket `Type:Number`
Socket.io Port
### socketClient `Type:String`
socket.io client connect URL
### mongoDB `Type:String`
mongoose connect URL
? [mongoose Getting Started](http://mongoosejs.com/docs/index.html)
## Example config file.
```
module.exports = {
port:25252,
socket:9000,
socketClient:"http://localhost:9000/",
mongoDB:"mongodb://localhost/",
TRACKERS:[
["udp://tracker.leechers-paradise.org:6969"],
["udp://tracker.opentrackr.org:1337"],
["udp://explodie.org:6969"],
["udp://tracker.empire-js.us:1337"],
["wss://tracker.btorrent.xyz"],
["wss://tracker.openwebtorrent.com"],
["wss://tracker.fastcast.nz"],
]
}
```