markscript-koa
TypeScript icon, indicating that this package has built-in type declarations

0.5.2 • Public • Published

MarkScript Koa Server

Overview

Provides an easy to use, already configured, koa server for MarkScript projects.

Given a MarkScript uServices spec, this will automatically proxy those uServices via socket.io for a client to consume.

Also provides easy static file sharing.

Usage

Install:

npm install markscript-koa

Basic Usage:

 
import {Server} from 'markscript-koa'
 
let server = new Server({
  database: {
    databaseName: 'content',
    host: 'localhost',
    port: 8005,
    user: 'myUser',
    password: 'password'
  }, middle: {
    host: 'localhost',
    port: 8080
  },
  serviceSpecs: serviceSpecs,
  fileServerPath: './www'
})
server.start()
 
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.2
    3
    • latest

Version History

Package Sidebar

Install

npm i markscript-koa

Weekly Downloads

4

Version

0.5.2

License

MIT

Last publish

Collaborators

  • christyharagan