fhyts
v1.0.2
Published
FhyTS Engine
Readme
FhyTS
FhyTS is a lightweight and modular TypeScript-based web framework designed to simplify the development of web applications with a clean and structured architecture. It uses a modular approach with dependency injection, flexible routing, and template engine support.
Installation
npm install fhytsCreate Server (Basic)
// app.ts
import { FhyEngine, Logger } from 'fhyts';
async function Server() {
try {
const port = 3000;
// Register a route
const router = FhyEngine.getInstance().r;
router.rq('GET', '/', (req, res) => {
res.send('Hello from @fhyts!');
});
Logger.info(`Starting server di http://localhost:${port}`);
await FhyEngine.getInstance().start(port);
} catch (err) {
Logger.error('Server failed to start:', err);
}
}
Server();Create tsconfig.json (Basic)
{
"compilerOptions": {
"target": "es2016",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
}
}
Read Full Documentation
