Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

BonnierNews/lu-server

Repository files navigation

DEPRECATED

As of September 2024 this package is deprecated and will receive no further updates.

Any internal changes should be made directly in lu-greenfield.

LU Server

Node.js CI

The base server for lu apps

usage

import express from "express";
import { init } from "lu-server";

const routes = express.Router();
routes.get("/", (req, res) => res.status(200).send("Hello World!"));

const { app, start } = init(routes);

if (import.meta.url.endsWith(process.argv[1])) {
  start();
}

export default app; // for testing