apolitical-server

0.0.13 • Public • Published

Apolitical Server

Node.js module to encapsulate Apolitical's express server setup

Requirements

Requires the following to run:

Installation

Install with yarn:

yarn add apolitical-server

Usage

The recommended way to use apolitical-server is to start your own server with the appropriate parameters:

const apoliticalServer = require('apolitical-server');

(async function quickstart() {  
  // Start the server
  const app = await apoliticalServer.start({ port: 8080 });
  /******************************
   * Do something with your app 
   ******************************/
  // Stop the server
  await apoliticalServer.stop();
})();

Package Sidebar

Install

npm i apolitical-server

Weekly Downloads

2

Version

0.0.13

License

MIT

Unpacked Size

33.7 kB

Total Files

857

Last publish

Collaborators

  • npm-apolitical-styleguide