Create Apple Wallet passes for your WiFi credentials.
- Create a folder named
componentsin the repo's root directory. - Follow these instructions to generate your certificate files.
- Once the files have been generated, place them in the
componentsdirectory. - Rename the certificates to
signerCert.pem,signerKey.pem, andwwdr.pem. - Create a copy of the
.env.examplefile and name it.env. - Add an environment variable for the passphrase that you used when generating the certificates to the
PASS_SIGNER_KEY_PASSPHRASEvariable.
- Create a new Firebase project in the Firebase console's project overview page.
- Add the project ID to the
FIREBASE_PROJECT_IDenvironment variable. - Navigate to your project's "Service accounts" settings (
Project Settings > Service accounts) to generate a private key. - Encode the private key using
base64and add it to yourFIREBASE_PRIVATE_KEYenvironment variable. - The file that was downloaded when generating the Firebase private key should also include a
client_emailaddress. Use that for yourFIREBASE_CLIENT_EMAILenvironment variable. - In the Firebase console, navigate to the
Realtime Databasepage. Copy the database's URL and add it to theFIREBASE_DB_URLenvironment variable.
To start a development instance run:
~/wifipass.co ❯❯❯ npm install
~/wifipass.co ❯❯❯ npm run devYou should then be able to access the webapp at http://localhost:3000.
MIT © Nikolaos Kamarinakis
