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

Add docs that explain how to migrate an express app to huncwot #83

Open
emilos opened this issue Mar 19, 2020 · 0 comments
Open

Add docs that explain how to migrate an express app to huncwot #83

emilos opened this issue Mar 19, 2020 · 0 comments

Comments

@emilos
Copy link

emilos commented Mar 19, 2020

Context

It'd be helpful to describe possible migrations paths.

One idea:

const express = require('express')
const Huncwot = require('huncwot')

const app1 = express()
const app2 = new Huncwot()

app1.get('/', () => /* proxy to app2 here */)
app2.get('/', () => 'foo')

app1.listen(3333)
app2.listen(3334)

Not ideal for performance for sure, but it should make it easier to migrate apps step by step

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

No branches or pull requests

1 participant