Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:06:00.000Z (about 2 years ago)
- Last Synced: 2024-11-19T21:47:16.276Z (3 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.