1.0.0-beta.1 • Published 3 years ago

@mrapi/app v1.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

@mrapi/app

Web framework for Node.js. Similar to express. Compatible with express.

Usage

yarn add @mrapi/app
import { App } from '@mrapi/app'

const app = new App()

app
  .get('/', (_req, res) => {
    res.end('Hello World!')
  })
  .listen(3000, (err: any) => {
    if (err) {
      throw err
    }

    console.log(
      `Server listening at http://localhost:${
        (app.server?.address() as any)?.port
      }`,
    )
  })