Component based MVC web framework for nodejs targeting good code structures & modularity.
import {Controller, DefaultWorker, textResult } from "fortjs"
export class UserController extends Controller{
@DefaultWorker()
async getUsers(){
return textResult("Hey, I am get users method");
}
}
import { Fort } from "fortjs";
import { UserController } from "./controllers";
// add routes
Fort.routes = [{
controller: UserController,
path: "/user"
}]
// initiate app
Fort.create().then(()=>{
Fort.logger.info(`App is started at location : http://localhost:${Fort.port}`);
})
Check out repo - https://github.com/ujjwalguptaofficial/fortjs-examples
You are very welcome to contribute, please see contributing guidelines - [Contribute].
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. For sponsoring, contact author of this project.