mddanishyusuf / dailyhack

🐱‍💻 Tiny Tiny Hacks we use in our daily life.
https://dailyhack.now.sh/
149 stars 15 forks source link

Easy to remember local static web server - httpster #38

Open limitlis opened 5 years ago

limitlis commented 5 years ago

I know there's tons of options out there, but this one is my go-to. Primarily because it's hard to forget, but also has just the right amount of features.

httpster

Install:

npm i -g httpster

Then from any folder you want served, simply:

httpster

Default port is 3333.

Advanced Usage:

With custom port: httpster -p 8080

Declare directory as root: httpster -d /dist

Even more advanced usage, https://github.com/SimbCo/httpster

mddanishyusuf commented 5 years ago

Yes, this is an easy hack and daily uses trick. But I use live-server.