Skip to content

fnobi/koko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koko

instant web server (proxy server).

Koko start server on port picked randomly, and current directory is set as document root.

features

  • auto open path on browser
  • proxy server
  • php module

install

% npm install -g koko

or, install dev-version.

% npm -g install git://github.com/fnobi/koko.git

start server

% cd your/document/root
% koko
document root : your/document/root
[listen 59733]

or, with path. use option -p (--path).

% koko -p your/document/root
document root : your/document/root
[listen 1835]

auto open

with -o (--open), Koko auto open url on browser.

% koko -o -p your/document/root
document root : your/document/root
[listen 4797]
[open http://172.0.0.1:4797]

use -o with argument, Koko open url with path on browser.

% koko -o default.html -p your/document/root
document root : your/document/root
[listen 4797]
[open http://172.0.0.1:4797/default.html]

static port

% koko -P 5555
document root : your/document/root
[listen 5555]

proxy

with -u (--url), Koko work as proxy server for url.

% koko -u http://fnobi.com/
document root : your/document/root
proxy : fnobi.com:80
[listen 6022]

php

with --php, Koko exec .php file by /usr/bin/php.

% koko --php
document root : your/document/root
php: on
[listen 10791]

About

instant file server (proxy server).

Resources

Stars

Watchers

Forks

Packages

No packages published