Install Bun
curl -fsSL https://bun.sh/install | bashMake sure Husky is installed globally
npm i --g huskybun install --frozen-lockfileIn order to run apps in local development mode, two keys must be added to the node dir directory. The following set of commands apply to a macOS system. However, if mkcert is installed by another package manager, this can be run on any flavor of *nix.
cd ~/.ssh
brew install mkcert # replace with another package manager for linux distro
brew install nss # need to install certutil before running `mkcert -install` so the CA can be automatically installed in Firefox
# at this point, open any https website in Firefox before running the below commands
mkcert -install
mkcert -key-file localhost_key.pem -cert-file localhost_cert.pem localhost 127.0.0.1
cat localhost_cert.pem > localhost_fullchain.pem
cat "$(mkcert -CAROOT)/rootCA.pem" >> localhost_fullchain.pemNow, copy the .pem files into the node dir. These keys are .gitignored by default.
Or run the below command to copy the files to your currently cd’d dir automatically
cp -v ~/.ssh/localhost_cert.pem ~/.ssh/localhost_key.pem .