203a53cb329fb3a3859af160b5402033b776182c
## Changes * Adds the [AssetPack](https://metacpan.org/pod/Mojolicious::Plugin::AssetPack) Mojolicious plugin * Adds the [MaterializeCSS](https://www.npmjs.com/package/materialize-css) Node package * Applies styles to app Reviewed-on: #1
mojo-app
An example Mojolicious application.
build docker image
$ docker build -t mojo_app .
serve app
$ docker run --rm -it -p 3000:3000 mojo_app
Visit localhost:3000 with web browser.
serve app with local changes
install Mojolicious dependencies
$ docker run --rm -v $PWD:/opt/app --entrypoint carton mojo_app install
install Node packages
$ docker run --rm --init -w /opt/mojo_app -v $PWD/mojo_app:/opt/mojo_app node npm install
start the server
$ docker run --rm -v $PWD:/opt/app -p 3000:3000 mojo_app
Visit localhost:3000 with web browser. Changes should load when you reload
the page, without having to restart the server.
Description
Languages
Perl
64.8%
Dockerfile
19.8%
HTML
15.4%