Compare commits

..

2 Commits

Author SHA1 Message Date
fa68e4aff4 Update README.md 2026-07-31 14:56:51 -07:00
203a53cb32 Add MaterializeCSS styles (#1)
## 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
2026-07-31 03:07:33 +00:00
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
FROM node:latest FROM node:latest
WORKDIR /usr/src/ WORKDIR /opt/mojo_app/
COPY mojo_app/package.json . COPY mojo_app/package.json .
COPY mojo_app/package-lock.json . COPY mojo_app/package-lock.json .
@@ -14,10 +14,10 @@ COPY cpanfile .
COPY cpanfile.snapshot . COPY cpanfile.snapshot .
COPY mojo_app ./mojo_app/ COPY mojo_app ./mojo_app/
RUN cpanm Carton && carton install RUN cpanm -nv Carton && carton install
WORKDIR /opt/app/mojo_app/ WORKDIR /opt/app/mojo_app/
COPY --from=0 /usr/src/ . COPY --from=0 /opt/mojo_app/ .
EXPOSE 3000 EXPOSE 3000

View File

@@ -31,3 +31,6 @@ Visit `localhost:3000` with web browser.
Visit `localhost:3000` with web browser. Changes should load when you reload Visit `localhost:3000` with web browser. Changes should load when you reload
the page, without having to restart the server. the page, without having to restart the server.
## run tests
$ docker run --rm -t -v $PWD:/opt/app --entrypoint carton mojo_app exec -- prove -lv t