@ove-lib/appbase

0.6.3 • Public • Published

@ove-lib/appbase

Base library for Open Visualization Environment (OVE) applications. This library depends on @ove-lib/utils.

Install

npm install @ove-lib/appbase --save

Usage

const path = require('path');
const { express, app, log, nodeModules } = require('@ove-lib/appbase')(__dirname, 'myapp');
const server = require('http').createServer(app);

log.debug('Using module:', 'some_module');
app.use('/', express.static(path.join(nodeModules, 'some_module', 'build')));

const port = process.env.PORT || 8080;
server.listen(port);
log.info('application started, port:', port);

Readme

Keywords

Package Sidebar

Install

npm i @ove-lib/appbase

Weekly Downloads

0

Version

0.6.3

License

MIT

Unpacked Size

39.6 kB

Total Files

5

Last publish

Collaborators

  • bcd00
  • fguitton
  • oserban