diff --git a/source/_posts/How-to-create-static-HTTP-server-in-Node-JS.md b/source/_posts/How-to-create-static-HTTP-server-in-Node-JS.md index c0c703e..c126e74 100644 --- a/source/_posts/How-to-create-static-HTTP-server-in-Node-JS.md +++ b/source/_posts/How-to-create-static-HTTP-server-in-Node-JS.md @@ -7,12 +7,14 @@ tags: - javascript - server categories: Tips +thumbnail: /images/covers/How-to-create-static-HTTP-server-in-Node-JS.png --- -Node.JS is a event driven server-side JavaScript runtime, that uses V8 JS Engine (same as Chromium) and executes code outside a web browser. +If you want to serve static files on your Node.JS web application, you can create a simple static HTTP server in Node.JS. +Node.JS is a event-driven server-side JavaScript runtime, that uses V8 JS engine (same as Chromium) and executes code outside a web browser. In this article we will cover basics of implementation of HTTP server in Node.JS and build a simple static HTTP server. ## Prerequisites -- Node.JS installed on your developement machine +- Node.JS installed on your development machine ## Built-in HTTP module Node.JS has built-in `http` module, which allows Node.JS to communicate over HyperText Transfer Protocol (HTTP). To include that module, we use `require()` method: diff --git a/source/images/covers/How-to-create-static-HTTP-server-in-Node-JS.png b/source/images/covers/How-to-create-static-HTTP-server-in-Node-JS.png new file mode 100644 index 0000000..4a08b71 Binary files /dev/null and b/source/images/covers/How-to-create-static-HTTP-server-in-Node-JS.png differ