Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@emilos

Description

@emilos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions