Without using any popular framework or module to achieve server rendering and routing for practice.
Install yarn
and dependencies of this repo.
brew install yarn && yarn
This is a way to create standalone static app without node server.
yarn run build
Render plain html for server rendering, and use expressjs/express and janl/mustache.js as web server and template engine.
yarn run server
Export static files for client rendering, and use zeit/serve as web server.
yarn run client