Modular & Scalable
FhyTS
Build typescript applications with a clean, modular, and easily extensible architecture.
- Modular
- DI Container
- Controller
- Service
- Middleware
- Much More
server.ts
import { FhyEngine, Logger } from 'fhyts';
async function Server() {
try {
const port = 3000;
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();
Where to Start?
Start your development journey with clear steps and solid documentation. Visit the Documentation .
Installation
Install the fhyts package and easily create your apps modules.
Define Controller & Service
Create controllers for endpoints and services for business logic.
Register Middleware & Routes
Manage middleware and routes through modular configuration.
Run Server
Use the built-in HTTP Server to start the application.