https://github.com/bushblade/simple-vanilla-js-node-server
A static replacement for my apache server
https://github.com/bushblade/simple-vanilla-js-node-server
Last synced: 4 months ago
JSON representation
A static replacement for my apache server
- Host: GitHub
- URL: https://github.com/bushblade/simple-vanilla-js-node-server
- Owner: bushblade
- Created: 2018-05-27T12:28:23.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:06:00.000Z (over 2 years ago)
- Last Synced: 2025-01-21T01:14:27.121Z (6 months ago)
- Language: JavaScript
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple vanilla JS Node server
This server is so far a static replacement for my apache server, to run it node needs permission to run on port 80. Do not run as root instead use:-
```
sudo setcap cap_net_bind_service=+ep /bin/node
```
Instead of using a template engine I am experimenting with using es6 template literal syntax async/await to render a string and ``res.send()`` instead of rendering with a template engine.I am plan on using functional composition where possible instead of the inheritance model.