@radpack/server
v1.1.3
Published
Rapid Application Development Packaging Server Runtime
Downloads
40
Readme
@radpack/server
The server-side runtime package. This is automatically imported into applications built using @radpack/webpack-plugin and targeting node. For client-side usage, use @radpack/client.
Installation
npm install @radpack/server
Usage
import radpack from '@radpack/server';
For express-like web applications wanting to locally link radpack libraries for testing, use the middleware and register the proxy route (example app):
import express from 'express';
import radpack from '@radpack/server';
import Middleware from '@radpack/server/middleware';
const app = express();
app.use(new Middleware());
app.listen(3000, () => {
radpack.register(`http://localhost:3000/radpack`);
});