Site (src folder)
- The site files (HTML, CSS, and Javascript) are built with Webpack.
- Almost all HTML content is generated via Javascript.
- Webpack is configured and handled as a Node application.
- The files are built with commands declared on package.json.
- During development...
- The
dev.run
command runs an instance of the Webpack's server. - The built files include a complete source-map artifact to facilitate using the browser's development tools.
- The
- For production, the site files are minified and not bundled with generated the source-map file.
- All features of the Node LappDog container development environment are also available here, including the linter and dependency management.
Server (src.go folder)
- The application that servers the site files is implemented using Go.
- All features of the Go LappDog container development environment are also available here, including the linter and dependency management.
- The site files are created by a container during the build process. Another container builds the Go application.
- The site files and the server application are copied into a scratch image resulting in a small and light production container.
- To be clear, the production container does not use node ;-)
Everything we produced here is licensed under the MIT License.