This project demonstrates how to generate Apple Wallet passes using Node.js. It leverages several libraries, including passkit-generator
, Express.js
, and Firebase.
- passkit-generator: A Node.js library for generating Apple Wallet passes.
- Express.js: A web application framework for Node.js.
- Firebase: A comprehensive mobile and web app development platform.
Here's a simple example of how to generate an Apple Wallet pass using this project:
-
Install Dependencies: Before running the project, install the required dependencies using npm:
npm install
{
{
"userId":"1",
"qrText":"Eqan my friend",
"thumbnail":"https://images2.alphacoders.com/132/1323416.jpeg",
"icon":" https://static.vecteezy.com/system/resources/thumbnails/024/553/676/small/skull-wearing-crown-logo-skull-king-sticker-pastel-cute-colors-generative-ai-png.png",
"primary":{
"value":"Salman Aziz",
"label":"MEMBER NAME"
},
"secondary":[
{
"value":"12345",
"label":"Loyalty Points"
},
{
"value":"2",
"label":"No of views"
}
],
"auxiliary":[
{
"value":"Silver",
"label":"TIER"
},
{
"value":"21313123",
"label":"MEMBER NUMBER"
}
],
"foregroundColor" : "FFFFFF",
"backgroundColor" : "333333",
"backField":[
{
"label": "More info",
"value": "This pass is for demo purposes only. Brought to you by Dot Origin and the VTAP100 mobile NFC pass reader. For more details visit vtap100.com"
}
]
}
}