Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean / define public programmatic interface #209

Open
junosuarez opened this issue Feb 4, 2016 · 1 comment
Open

Clean / define public programmatic interface #209

junosuarez opened this issue Feb 4, 2016 · 1 comment
Milestone

Comments

@junosuarez
Copy link
Contributor

pseudocode:

// simple case
const Radar = require('radar')
const configuration = require('./config.json')

const server = new Radar(configuration)
server.ready.then(_ => console.log('radar started'))
// adding radar to an existing HttpServer instance
// this might have unexpected behavior due to middleware ordering, but is useful for things like testing
const Radar = require('radar')
const configuration = require('./config.json')
const http = require('http')

const server = http.createServer()
const radar = new Radar(server, configuration)
@junosuarez junosuarez added this to the 1.0.0 milestone Feb 4, 2016
@junosuarez junosuarez changed the title Clean / define public interface Clean / define public programmatic interface Feb 4, 2016
@junosuarez
Copy link
Contributor Author

Main export should be RadarServer constructor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant