- Clone this repo
$ git clone https://github.com/brankas/Direct_APIX.git
- Change working directory
$ cd Direct_APIX
- Fetch dependencies
$ npm install
-
Generate and use Bearer Token
- If you don't have an APIX Platform account yet, Register at: link
- Login afterwards at: link
- Fetch the Bearer Token at: link
- Inject the Bearer Token via an environment variable:
$ export BEARER_TOKEN='Bearer XXX'
-
Generate and use Brankas Sandbox API Key
- If you don't have a Brankas user account yet, Register at: link
- Login afterwards at: link
- Enter the password again to generate a Sandbox API Key at: link
- Inject the API Key via an environment variable:
$ export SANDBOX_API_KEY='XXX'
-
Set the host url for the app
- For running this app inside the APIX Platform, subdomain differs per user account. You will see your subdomain
value when you first starts your APIX IDE. Format is usually
https://<EMAIL_ADDRESS>.solutions.apixplatform.com
. Inject it via an environment variable.# Email: [email protected]; this is an example, change the values accordingly $ export HOST_URL='https://jerrick-wong-brank-as.solutions.apixplatform.com'
- For running this app locally
$ export HOST_URL='http://localhost'
- For running this app inside the APIX Platform, subdomain differs per user account. You will see your subdomain
value when you first starts your APIX IDE. Format is usually
-
Running the application
$ npm run start