README
Web Server (ALPHA)
by apegroup
Install
npm install -g apegroup-server-web
Simple Usage
PORT=8080 apegroup-server-web start
Config
Add to package json
"serverConfig": {
"port": "1165"
}
or add to a server.yaml file in the project root
port: 1165
Programmatic Usage
import * as ExpressServer from 'apegroup-server-web';
var expressServer = new ExpressServer.default.ExpressServer({
name: `the-project-name`,
domain: `localhost`,
port: 3000,
icon: true,
modrewrite: true,
static: [
`/assets/libs`,
`/assets/media`,
`/assets/icons`,
`/assets/fonts`
],
accessOrigin: [
`https://the-project-url.com`
]
});