javah
TypeScript icon, indicating that this package has built-in type declarations

12.7.0 • Public • Published

💫 Javah

JavaScript framework similar to SpringBoot.

💬 Express, are you tired of java?

✅ Somewhere between Express and Java, you can easily adapt to the Familiar Environment.

  • 있어보이는 문법: Grammar that seems to be there
  • 개쩌는 성능: An Amazing Framework created by ICe1BotMaker

💾 Installation

Installation that takes less than a few seconds:

$ npm install javah@latest

🎥 Usage

It's kind of like a 쌈@뽕. It's a familiar grammar:

import FrameWork, { Request } from '../src';
const Javah = new FrameWork();

@Javah.Create()
export default class App {
    @Javah.Service(`/api/products`) @Javah.Cors()
    public Products = class extends Javah.Page {
        public request: Request;

        public constructor(request: Request) {
            super(); this.request = request;
            if (this.request.method === `get`) this.get();
            else this.post();
        }

        public get() {
            this.response.header = { 'Content-type': 'text/html charset=utf-8' };
            this.response.send(`THIS IS GET`);
        }

        public post() {
            this.response.header = { 'Content-type': 'application/json' };
            this.response.send(this.usePath(`tests/products.json`));
        }
    }
}

Javah.live(8080, {}, () => {
    console.log(`http://localhost:8080`);
});

Readme

Keywords

none

Package Sidebar

Install

npm i javah

Weekly Downloads

0

Version

12.7.0

License

MIT

Unpacked Size

22.4 kB

Total Files

9

Last publish

Collaborators

  • ice1