AdonisJS CRUD App Notes
Create your app scaffolding:
yarn create adonis-ts-app $APP_NAME| " Disable compatibility with vi which can cause unexpected issues. | |
| set nocompatible | |
| " Turn syntax highlighting on. | |
| syntax on | |
| " Add numbers to each line on the left-hand side. | |
| set number | |
| " Enable backspace in insert mode on macOS. |
Create your app scaffolding:
yarn create adonis-ts-app $APP_NAME| export default () => ({}); |
| .Dd $Mdocdate$ | |
| .Dt PROGNAME 1 | |
| .Os | |
| .\" | |
| .Sh NAME | |
| .\" ==== | |
| .Nm progname | |
| .Nd ... | |
| .\" | |
| .Sh SYNOPSIS |
| #!/usr/bin/env sh | |
| set -o errtrace; set -o errexit; set -o pipefail | |
| if [ -n "${1}" ]; then filter="${1}"; else filter=''; fi | |
| jq ."${filter}" package.json |
# sh
$ npm start
> Doing stuff...
More stuff...# sh-session
$ npm start| #!/usr/bin/env sh | |
| say --voice=Kyoko --rate=0 --interactive=bold rei ichi ni san yon go roku nana hachi kyuu juu juuichi juuni juusan juushi juugo juuroku juushichi juuhachi juuku nijuu nijuuichi nijuuni nijuusan nijuushi nijuugo nijuuroku nijuushichi nijuuhachi nijuuku sanjuu sanjuuichi sanjuuni sanjuusan sanjuushi sanjuugo sanjuuroku sanjuushichi sanjuuhachi sanjuuku yonjuu yonjuuichi yonjuuni yonjuusan yonjuushi yonjuugo yonjuuroku yonjuushichi yonjuuhachi yonjuuku gojuu gojuuichi gojuuni gojuusan gojuushi gojuugo gojuuroku gojuushichi gojuuhachi gojuuku rokujuu rokujuuichi rokujuuni rokujuusan rokujuushi rokujuugo rokujuuroku rokujuushichi rokujuuhachi rokujuuku nanajuu nanajuuichi nanajuuni nanajuusan nanajuushi nanajuugo nanajuuroku nanajuushichi nanajuuhachi nanajuuku hachijuu hachijuuichi hachijuuni hachijuusan hachijuushi hachijuugo hachijuuroku hachijuushichi hachijuuhachi hachijuuku kyuujuu kyuujuuichi kyuujuuni kyuujuusan kyuujuushi kyuujuugo kyuujuuroku kyuujuushichi kyuujuuhachi kyuujuuku hyakus |
| #!/usr/bin/env sh | |
| lsdir () { | |
| if [ "${1}" ]; then file=$1; else file='.'; fi | |
| # shellcheck disable=SC2010 | |
| ls -Al "${file}" | grep '^d' | awk '{print $NF}' | |
| } |