@ms-cloudpack/create-express-app
TypeScript icon, indicating that this package has built-in type declarations

1.6.15 • Public • Published

@ms-cloudpack/create-express-app

Helper for creating an express app server, abstracting a common plugin setup.

Usage

import { createExpressApp } from '@ms-cloudpack/create-express-app';

const app = creatExpressApp([5000, 5001], (app) => {
  // Set up routes.
  app.get('*', async (req, res) => {
    res.send(`<html>...</html>`);
  });
});

// Stop app when you're done.
app.close();

Dependents (4)

Package Sidebar

Install

npm i @ms-cloudpack/create-express-app

Weekly Downloads

324

Version

1.6.15

License

MIT

Unpacked Size

22.7 kB

Total Files

19

Last publish

Collaborators

  • ecraig12345_msft
  • uifabricteam
  • dzearing