GithubHelp home page GithubHelp logo

xfan1982 / peerflix-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asapach/peerflix-server

0.0 1.0 0.0 1.02 MB

Streaming torrent client for node.js with web ui.

License: MIT License

peerflix-server's Introduction

peerflix-server

Build Status

logo

Streaming torrent client for node.js with web ui.

screen capture

Based on torrent-stream, inspired by peerflix.

Usage

  1. npm install -g peerflix-server
  2. peerflix-server
  3. Open your browser at http://localhost:9000/
  4. Enjoy!

Configuration

You can configure the application using ~/.config/peerflix-server/config.json file (doesn't exist by default). The options are passed to all torrent-stream instances. Here's an example that overrides the defaults:

{
  "connections": 50,
  "tmp": "/mnt/torrents"
}

The application stores its current state (list of torrents) in ~/.config/peerflix-server/torrents.json

Daemon

If you want to run peerflix-server as a daemon, you can do it using forever:

npm install -g forever

forever start /usr/local/bin/peerflix-server (the path depends on your distribution and npm configuration)

You might also want to enable logging -- see the docs.

Development

If you wish to build and run the code from source, here's what you'll need:

Prerequisites

Install all local modules: npm install

Install Grunt and Bower: npm install -g grunt-cli bower

Download all required 3rd-party dependencies like Angular, jQuery and Bootstrap: bower install

Running development server

grunt serve

The task will first perform all required pre-processing, enable watch, live-reload, jshint and karma, and then open the browser. If you don't want any of this fancy stuff, you can just run node server/bin.js

Building production-ready application

grunt build

This task will optimize and minimize all the assets and prepare the code for deployment (e.g. to npm registry). You can run the production version locally by using grunt serve:dist

Unit tests

grunt test

This task will start Karma test runner and report the results.

JSHint

grunt jshint

This task will run code analysis and report the results.

peerflix-server's People

Contributors

asapach avatar

Watchers

James Cloos 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.