Skip to content
/ alox Public

Alox HTTP helpers, decorators and other utils

License

Notifications You must be signed in to change notification settings

alox-sh/alox

Repository files navigation

Alox

Progress

Interface Implementation Status
Server Server (base) ✔️
^ API ✔️
^ Website ✔️
^ File
^ Proxy
Response (base) ✔️
^ JSON ✔️
^ Page ✔️

Alox (client)

Usage

  1. Install with
    NPM
    npm i --save @alox.sh/client
    or YARN
    yarn add @alox.sh/client
  2. Import
    import type { WebsiteState } from '@alox.sh/client'
    
    // Declare 
    export declare global {
        interface Window {
            __websiteState?: WebsiteState
        }
    }

Supported application types

Out of the box support

  • SPA (served from file system) - see examples/spaDir
  • SPA (embeded into the binary) - see examples/spaEmbeded

Extendable

  • Any other type - this library is fully customizable to support virtually any application type

About

Alox HTTP helpers, decorators and other utils

Resources

License

Stars

Watchers

Forks

Packages

No packages published