Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.11 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.11 KB

Express Reimplementation: Hexpress

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!

Running the project

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

TODO

  • 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 ?