Skip to content

braid-org/host

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

host

A nice way to host Braid apps.

Example usage:

var host = require('@braidjs/host')

host.route({ path: '/pub*',  to: host.server('micropub') })
host.route({ path: '/*',     to: host.server('invisible.college') })

console.log('Making the host!')
host.listen(443)

This short-form example assumes you have web servers implemented at ./micropub/server.js and ./invisible.college/server.js, but you can also specify an arbitrary directory and script with:

host.route({ path: <path>, to: host.server('directory', 'server.js') })

Or you can specify an existing server's port with:

host.route({ path: <path>, to: {name: '<some name>', port: <port number>} })

About

A convenient host for Braid apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published