A simple QR code scanner using WebAssembly.
Note that at this time we are only aware of a procedure for MacOS.
To create the certificates for SSL, you can use the following command:
brew install mkcert
After that, we want to also add nss
since we want to test stuff on Firefox:
brew install nss
Then we can run the following command to create the certificates:
mkcert -install
Now, we can create the certificates for the platform:
mkcert -cert-file nginx/${DOMAIN}.pem -key-file nginx/${DOMAIN}-key.pem ${DOMAIN}
and write to your .env
file domain name you want to use.
To run the server, you can use the following command:
trunk serve --address 0.0.0.0 --port 9898 --tls-key-path ./nginx/${DOMAIN}-key.pem --tls-cert-path ./nginx/${DOMAIN}.pem
You can now access the server on https://${DOMAIN}:9898
.