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