Skip to content

Latest commit

 

History

History

server

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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