apegroup-server-web

1.0.0-alpha.23 • Public • Published

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`
    ]
});

Readme

Keywords

none

Package Sidebar

Install

npm i apegroup-server-web

Weekly Downloads

1

Version

1.0.0-alpha.23

License

ISC

Last publish

Collaborators

  • hamedasemi