@radpack/server

1.1.3 • Public • Published

@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.

Documentation Logo

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

Readme

Keywords

none

Package Sidebar

Install

npm i @radpack/server

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

31.3 kB

Total Files

7

Last publish

Collaborators

  • indexzero
  • asilvas
  • gingur