- Both the proxy server and the file server use streams.
- Content is also written to the DOM using streams. This requires a
browser that supports
WritableStream
. To really see this in action, throttle your network speed toslow 3G
.
/
and/index.html
serve theindex.html
file. All that file does is fetch data from the local proxy and inject it into the DOM.- All other endpoints are proxied to JSON Placeholder.
Get started by installing Deno with
brew install deno
.
Package commands can be found in alias.sh
. Run source ./alias.sh
to enable.
These commands will disappear if you close your shell. Put
source <absolute-path>/alias.sh
in your ~/.zshrc
if you don't want to have
to keep doing this.
- serve: Runs the server with correct permissions.
- compile: Checks formatting, checks linting, then compiles the server into a single excutable with correct permissions.
- serve:prod: Compiles, then starts the server from the executable binary.