Initial commit

This commit is contained in:
2026-07-27 23:35:17 -07:00
commit a9dcb41ea3
9 changed files with 113 additions and 0 deletions

34
README.md Normal file
View File

@@ -0,0 +1,34 @@
## create a mojolicious app
### start a perl docker container
$ docker run --rm --init -it -v $PWD:/opt/app -p 3000:3000 -e USER_NAME=$(whoami) perl:threaded-trixie bash
### install mojolicious
# curl -L https://cpanmin.us | perl - -M https://cpan.metacpan.org -n Mojolicious
### create a user
# useradd -ms /bin/bash $USER_NAME
### switch to that user
# su - $USER_NAME
### switch to work dir
$ cd /opt/app/
### generate app
$ mojo generate app MojoApp
### start app
$ cd mojo_app/
$ morbo ./scripts/mojo_app prefork
### view page
Visit localhost:3000 in browser