A simple web server using uWebSockets.js. The aim was to create a very simple program to read from a directory and serve its contents to the web. It is intended to be easy to build upon should more features be required in the future.
- Clone or download this repository to your server
cd [location of the repository]yarn installornpm imkdir src- place the contents of your website in the
srcdirectory nodejs indexon Linux ornode indexon Windows
- To add
Content-Typeheaders for specific file extensions edit thecontent-type.jsonfile, following the existing example for svg files - Your website must have a file named
index.htmlif you want the/path to display something