cdna.media.host

0.1.24 • Public • Published

cdna.media.host

host api for cdna media application

this module provide http api to access meida information as movie, music

Build Status

NPM

next target

  • stream torrent to local file system
  • setup http server to stream local file system
  • create api using for http client get, update torrent stream state

requirements

notes: c/c++ compiler for node compile bufferutil, utf-8-validate module

for all platform

  • revision system control git
  • nodejs, include node package manager nodejs
  • mongoose database server mongoose-server
  • python >= 2.5 < 3 py

with unix-like

  • gcc compiler

with window

  • vc compiler

installation

# use node package manager 
# this is instruction for user, with developer see after 
npm install cdna.media.host

usage

create new server

# load module 
var MediaHost = require('cdna.media.host');
 
# create configuration 
var config = {
    port: <number>, // port where server will listen
    mongo: {
        url: <string> // url to mongo database
    }
};
 
# start server  
# now, rest api available in port 
# note that server is created with empty database 
# see use built-in command to pull data 
var server = new MediaHost.MediaServer(config);
server.start();

use built-in command

# start server with port 
./bin/chost.js --start <port>
 
# pull data from yts api to mongoose database 
./bin/chost.js --pull <mongo_db>

rest api

see document for detail api

developments

# clone source code from github 
# require ssh key, contact to author to get one 
git clone git@github.com:thelordofthetimes/cdna.media.host.git
 
# change to source code directory 
cd cdna.media.host
 
# install npm modules 
npm install
 
# try use media server, test api, push issuse and more 
# push change to git 
git commit -am <message> && git push

Package Sidebar

Install

npm i cdna.media.host

Weekly Downloads

1

Version

0.1.24

License

BSD

Last publish

Collaborators

  • thelordofthetimes