Express is the most common NodeJS framework for serverside application development. It is commonly used for building REST APIs, single page and multi-page web applications following an MVC pattern and can be used with view engines such as EJS and Pug.
Express leverages Node's HTTP module whilst greatly simplifying backend workflow.
In this project I reimplement some features of Express. For fun!
Make sure NodeJS is installed on your machine.
Clone the project
Move into the directory and install dependencies.
cd hexpress && npm install
Run the test suite:
npm test
- Can get a new Hexpress app โ
- Default 404 error handling โ
- Basic app.get() routing โ
- app.put(), app.post(), app.delete(), app.all() routing โ
- Support parameterised routes โ
- Support queries โ
- Support custom middleware โ
- Support custom error middleware โ
- Support serving static files โ
- Support using a template engine โ
- Hexpress.Router ?