Skip to content

About Design for quickly developing OpenAPI applications using Node.js

License

Notifications You must be signed in to change notification settings

zcwleo/node-koapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@axiosleo/koapp

Design for quickly developing Web applications using Node.js

Based on koa

npm install @axiosleo/koapp

Quick Start

const { KoaApplication, Router, success } = require("@axiosleo/koapp");

const app = new KoaApplication({
  port: 8088,
  listen_host: "localhost", // 0.0.0.0 for public access
  routers: [
    new Router("/test", {
      method: "any",
      handlers: [
        async (ctx) => {
          success({
            test: "123",
          });
        },
      ],
    }),
  ],
});
app.start();

// open http://localhost:8088/test

License

This project is open-sourced software licensed under the MIT.

About

About Design for quickly developing OpenAPI applications using Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • HTML 0.1%