Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 682 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 682 Bytes

DGAC NM B2B JavaScript client example

This repository contains a simple example project to demonstrate the setup and usage of the DGAC NM B2B JavaScript client.

Quickstart

# Clone this repository
$ git clone [email protected]:DGAC/nmb2b-client-js-example.git b2b-client-example

# Install dependencies
$ cd b2b-client-example
$ pnpm install

# Configure your B2B certificate via .env file
$ rm .env
$ echo 'B2B_FLAVOUR=PREOPS' >> .env
$ echo 'B2B_CERT_FORMAT=pfx' >> .env
$ echo 'B2B_CERT=/path/to/your/b2b/certificate.p12' >> .env
$ echo 'B2B_CERT_PASSPHRASE=MyPassPhrase' >> .env

# Start the example
$ pnpm regulations