logoEframix

Hello World

Create your first Eframix application with a simple Hello World example.


Hello World Example

const Eframix = require('eframix');
const app = new Eframix();
app.get('/', (req, res) => {
res.end('Hello, World!');
});
app.startServer(3000, () => {
console.log('Server running on http://localhost:3000');
});

Run this code and visit http://localhost:3000 in your browser to see the "Hello, World!" message.