Skip to content

sdavids/sdavids.de-homepage

Repository files navigation

sdavids.de Homepage

$ cd hp
$ pnpm install
$ cd hp
$ pnpm run build

hp/dist

$ cd hp
$ pnpm run format
$ cd hp
$ pnpm run lint
$ cd hp
$ pnpm run test
ℹ️

Ensure Playwright has been installed.

Start a development server; in a new shell:

$ cd hp
$ pnpm run playwright

Start a development server; in a new shell:

$ cd hp
$ pnpm run playwright:trace

Start a development server; in a new shell:

$ cd hp
$ pnpm run playwright:ui
$ cd hp
$ pnpm run cert:ca:create
$ pnpm run cert:create

Ensure that you have modified your DNS settings to include httpd.internal.

$ cd httpd
$ scripts/docker_build.sh
$ cd hp
$ pnpm run docker:httpd:start:with-build
$ cd hp
$ pnpm run docker:httpd:stop

After initializing this repository, you need to configure the ignore-revs-file:

$ git config set blame.ignoreRevsFile .git-blame-ignore-revs

Add httpd.internal to your /etc/hosts:

/etc/hosts
127.0.0.1       localhost httpd.internal
::1             localhost httpd.internal
ℹ️

If you want to change this entry, you need to also change:

httpd/httpd.conf
ServerName httpd.internal:80
httpd/httpd-ssl.conf
ServerName httpd.internal:443
hp/scripts/docker_httpd_start.sh
readonly host_name='httpd.internal'
hp/package.json

  "scripts": {

    "cert:copy": "scripts/copy_ca_based_cert.sh certs httpd.internal",
    "cert:create": "scripts/create_ca_based_cert.sh certs 30 httpd.internal",
    "cert:delete": "scripts/delete_ca_based_cert.sh certs httpd.internal",
    "cert:renew": "scripts/renew_ca_based_cert.sh certs 30 httpd.internal",
    "cert:verify": "scripts/verify_ca_based_cert.sh certs 30 httpd.internal",

  },

Install pnpm.

$ cd hp
$ pnpm run cert:ca:create
$ pnpm run cert:create
$ cd hp
$ pnpm run cert:copy
$ sudo apt-get install jq
$ brew install jq
$ sudo apt-get install brotli
$ brew install brotli
$ sudo apt-get install zstd
$ brew install zstd
$ sudo apt-get install shellcheck
$ brew install shellcheck
$ sudo apt-get install shfmt
$ brew install shfmt
$ sudo apt-get install yamllint
$ brew install yamllint

Install hadolint.

$ brew install hadolint
$ sudo apt-get install gpg

Install GPG Suite.

Ensure that you install version 3.1.7 and not 3.2.x!

Install easyrsa.

Warning

Unfortunately, homebrew provides easy-rsa version 3.2.x .

$ curl -L https://github.com/OpenVPN/easy-rsa/releases/download/v3.1.7/EasyRSA-3.1.7.tgz -o ~/Downloads/easy-rsa.tgz
$ tar -xzf ~/Downloads/easy-rsa.tgz -C ~/.local/share
$ mv  ~/.local/share/EasyRSA-3.1.7 ~/.local/share/easyrsa
$ ln -s ~/.local/share/easyrsa/easyrsa ~/.local/bin/easyrsa
$ rm ~/Downloads/easy-rsa.tgz
$ cp hp
$ pnpm exec playwright install --with-deps --no-shell
ℹ️

You can delete all downloaded binaries via:

$ pnpm exec playwright uninstall --all

About

Sebastian Davids Homepage

Resources

Stars

Watchers

Forks