Use hyron-cli in place of this package to make working easier and more convenient
Introduction (beta)
Hyron is an extremely powerful framework that helps you develop an extremely fast and easy server app.
npm install hyron
Features
- High reusability
- Easy to use
- Easy to upgrade and maintain
- High plug-in capability
- Save working time
Benefit
- Save time, development costs
- Easy to scale, maintain, debug
- Easy and convenient to work
Hello world
const hyron = require("hyron");
class demo {
static requestConfig() {
return {
sayHello: "get"
};
}
sayHello(yourName = "you") {
return "Hello " + yourName;
}
};
var instance = hyron.getInstance(3000);
instance.enableServices({
"api": demo
})
instance.startServer();
Result : A router register on
GET http://localhost:3000/api/say-hello?yourName=[your_name]
Reference Document
For more detail, please read at : https://docs.hyron.org/api-reference
Contributing to Hyron
Check out contributing guide to get an overview of how to contribute to Hyron.