Files
passkit-generator/examples/README.md
2019-06-12 23:36:38 +02:00

23 lines
884 B
Markdown

# Examples
This is examples folder. Each example is linked to webserver.js, which *requires* express.js to run.
Express.js **was not** inserted as dipendency.
```sh
git clone https://github.com/alexandercerutti/passkit-generator.git;
cd passkit-generator;
npm install;
npm install --no-save express;
cd examples;
node <the-example-you-want-to-execute>.js
```
Certificates paths in examples are linked to a folder `certificates` in the root of this project which is not provided.
To make them work, you'll have to edit both certificates and model path.
Visit [http://localhost:8080/gen/examplePass](http://localhost:8080/gen/examplePass) to get the pass. Replace "examplePass" with the pass name in models folder.
Please note that `field.js` example will force you to download `exampleBooking.pass`, no matter what.
___
Every contribution is really appreciated. ❤️ Thank you!