Hekto is written in node.js and must be installed via npm so you must have Node.js installed.
npm install -g hekto
cd my-project
hekto serve <path>
option | description |
---|---|
--version [-v] | Show the installed version. |
--port <port> | The port your static content should be served on. |
--maxage <maxage> | The maxage for http caching. |
command | description |
---|---|
serve | serve the current directory |
Add a 404.html
file in the top directory.
Hekto supports single page applications like(react, vue and angular). Simply add a 200.html
file in your projects directory. Hekto will serve your 200.html on every requests. You can still access all the other files.
Extension less html makes it possible for you to strip .html
for html files in urls. Eg. help.html
is served at /help.html
and at /help
.
Create a pull request / issue to tell us about your awesome ideas, you want us to add or fork the repo and send us a link to your version.
MIT