Skip to content

Chivenh/express-xs-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The simple server creator based on Express by Chivenh FhTiger

Example

    let testServer = require("express-xs-server");
    let staticWeb = testServer.listen({
        use: ['/web', '/main','/modulesHandler'],//static source
        prepare:function (testServer) {
            //init before test created.
            testServer.post(/*......*/);
            testServer.get(/*......*/);
            /*add so on ......*/
        },
       port:8049    //port,if not set ,the default value is 8049.
    }); //开启服务(默认8049).

About

The simple server based on `Express`

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published