0.7.0 • Published 1 year ago

@alepha/server v0.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@alepha/server

Installation

npm install @alepha/server

Usage

import { Alepha, $route } from "@alepha/server";

class App {
  index = $route({
    handler: () => "Hello, World!",
  });
}

Alepha
  .create({
    SERVER_PORT: 3000,
    SERVER_OPENAPI_ENABLED: true,
    SERVER_SECURITY_ENABLED: true,
  })
  .with(App)
  .start();