Microserver: local http server with SPA support
The other day, while developing an
Angular application I needed to serve the
AoT compiled version of the app and I used the http-server npm package. To my surprise, it didn’t offer support for
SPAs (Single Page Applications).
Warp to the rescue
The first thing I had to do was to decide which web server framework I would use as a base and I chose Warp because of its friendly API and its amazing and incredible performance.
Then it was just a matter of putting together a few lines of Rust and make it work!
Once everything was in place I was ready to publish my first
How to use it