minimal HTTP Server for delivering static assets like Micro Frontends
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
ci-scripts
docs
health-check-scripts
public
routes
test
utils
views
.babelrc
.eslintignore
.eslintrc
.gitattributes
.gitignore
.gitlab-ci.yml
.npmignore
.npmrc
.travis.yml
LICENSE
README.md
VERSION
app.js
commandline.js
compile.js
compile.sh
install.sh
lint.sh
local-pipeline.sh
nodemon.json
package.json
pidfile-test
reunite.js
server.js
start.sh
stop.sh
test-integration.sh
test.sh
yarn.lock

README.md

Assets-Service Build Status

A minimal HTTP Server for delivering static assets like JS bundles. Ideal for integrating and serving Micro Frontends like SPAs as well as CSS files.

  • Concatenates JS-assets in 'public/' with a header code to a stream.
  • Sends stream as a response to the browser.

Run application

Following parameters can be passed before running the application:

node server.js --help

Output will be:

  Usage: server [options]


  Options:

    -V, --version    output the version number
    -p --port <i>    port number for the web-server (default: 7000)
    -d --dir <path>  directory to the assets (default: ./public)
    -l --log <path>  file for writing logs (default: ./combined.log)
    -h, --help       output usage information