Updated examples Readme with building

This commit is contained in:
Alexander Cerutti
2019-07-25 23:58:52 +02:00
parent 60ae0f06b1
commit 7d1cb785bc

View File

@@ -6,10 +6,11 @@ Each example is linked to webserver.js, which *requires* express.js to run.
Express.js has been inserted as "example package" dipendency. Express.js has been inserted as "example package" dipendency.
```sh ```sh
git clone https://github.com/alexandercerutti/passkit-generator.git; $ git clone https://github.com/alexandercerutti/passkit-generator.git;
cd passkit-generator && npm install; $ cd passkit-generator && npm install;
cd examples && npm install; $ cd examples && npm install;
node <the-example-you-want-to-execute>.js $ npm run build;
$ 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. Certificates paths in examples are linked to a folder `certificates` in the root of this project which is not provided.