Skip to content

otarim/server.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

server.js

a simple node.js server

http://ww2.sinaimg.cn/large/9bfe0b14gw1enxbuacpbpj20pd0hsjtm.jpg

###Structure

.
├── colors.js     --- colorful console output
├── README.md     --- readme file
├── server.js     --- entry file
├── server.conf   --- config file
└── license       --- license file

###Settings

The following object sets up the default settings of server.conf :

"root": "./", // http server path
"port": 2333, // http server port
"gzip": ["application/javascript"] // which mimeType to use gzip compress
"ignoreExtname": [".DS_Store",".git",".idea"] // extname to ignore
"domainMap": {
    "netease.misaka.ota": {
        "port": 9527
    },
    "cors.misaka.ota": {
        "port": 8060
    }
} // Port Mapping,you should map these domains to localhost in your hosts
"style": ... // your customize style

###Mocha

$ npm test

License

Copyright (c) 2015 contributors. Released under the , licenses

About

a simple node.js server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published