0.1.24 • Published 8 years ago

cdna.media.host v0.1.24

Weekly downloads
4
License
BSD
Repository
github
Last release
8 years ago

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
0.1.24

8 years ago

0.1.23

8 years ago

0.1.22

8 years ago

0.1.21

8 years ago

0.1.20

8 years ago

0.1.19

8 years ago

0.1.18

8 years ago

0.1.17

8 years ago

0.1.16

8 years ago

0.1.15

8 years ago

0.1.14

8 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago