Skip to content

No npm package #470

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

Closed
somebody1234 opened this issue Aug 25, 2016 · 6 comments
Closed

No npm package #470

somebody1234 opened this issue Aug 25, 2016 · 6 comments
Labels

Comments

@somebody1234
Copy link

I would like to see an npm package that I can app.use from Express

@andersevenrud
Copy link
Member

What kind of npm package ? Care to elaborate ?

@somebody1234
Copy link
Author

Just one I can require to control when/if the server starts, a basic API is enough, compatibility with Express' app.use would be a bonus

@andersevenrud
Copy link
Member

Still not sure what you mean. You want an API so you can roll your own server using Express ?

@somebody1234
Copy link
Author

Uh, I just want a function compatible with Express' app.use with a configurable path so I can just do app.use(osjs(<path>)) to start osjs on a certain path.

@andersevenrud
Copy link
Member

OS.js runs on its own server though, so not quite sure how to achieve what you want at the moment.

You can use a reverse-proxy in your webserver or maybe look at https://github.com/villadora/express-http-proxy for the same thing in your Express app :)

@andersevenrud
Copy link
Member

I'm closing this issue in favour of #304 (added as a task).

I'll do some research on this subject and if anything comes up I'll notify you there :)

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

No branches or pull requests

2 participants