@warp-works/warpjs

2.0.10 • Public • Published

WarpJS

Full stack JavaScript environment including WarpWorks code generators for MongoDB, NodeJS and Bootstrap

Releases Notes

See RELEASE.md.

Usage

npm install --save @warp-works/warpjs

To include WarpJS as part of your server, you would do something like this.

const express = require('express');
const warpjs = require('@warp-works/warpjs');

const app = express();

const staticUrlPath = '/some-static';
const warpjsBaseUrl = '/';

app.use(staticUrlPath, express.static(warpjs.publicFolder));
app.use(warpjsBaseUrl, warpjs.app(warpjsBaseUrl, staticUrlPath));

app.listen(process.env.PORT || 8080)

At the moment, don't mount WarpJS under another path than /. See the bug.

Configuration

You can configure the different path by creating .warp-works-warpjsrc. See the development configuration file.

/@warp-works/warpjs/

    Package Sidebar

    Install

    npm i @warp-works/warpjs

    Weekly Downloads

    394

    Version

    2.0.10

    License

    SEE LICENSE IN LICENSE.txt

    Unpacked Size

    12.7 MB

    Total Files

    506

    Last publish

    Collaborators

    • matt-quoin
    • mficht
    • huuda.tran
    • slama