xpressLab is a small project that simulates how Express.js works using Node.js’s HTTP module. I’m not trying to reinvent the wheel, just exploring how middleware, routing, static file serving, and handling route parameters and query strings work behind the scenes.
- Middleware Simulation – Implements a basic
next()-like function for chaining middleware. - Routing System – Supports dynamic routes with parameters and query strings.
- Static File Serving – Serves files from deeply nested directories.
- HTTP Request Handling – Manages different request methods and responses.
The goal is to break down and simulate how Express.js handles requests, middleware execution, and static file serving—without using a framework. This project helped in understanding the inner workings of Express.js in a more hands-on way.
-
Clone the repository:
git clone [https://github.com/Adamson123/xpressLab.git](https://github.com/Adamson123/xpressLab.git) cd xpressLab -
Start the server:
node index.js
-
Open a browser or use Postman to test different routes.
This isn’t meant to replace Express.js, just a personal experiment to understand its core mechanics without relying on a framework.