Skip to content

Latest commit

 

History

History
58 lines (47 loc) · 1.74 KB

README.md

File metadata and controls

58 lines (47 loc) · 1.74 KB

Direct_APIX

Getting Started

  1. Clone this repo
$ git clone https://github.com/brankas/Direct_APIX.git
  1. Change working directory
$ cd Direct_APIX
  1. Fetch dependencies
$ npm install
  1. Generate and use Bearer Token

    1. If you don't have an APIX Platform account yet, Register at: link
    2. Login afterwards at: link
    3. Fetch the Bearer Token at: link
    4. Inject the Bearer Token via an environment variable:
    $ export BEARER_TOKEN='Bearer XXX' 
    
  2. Generate and use Brankas Sandbox API Key

    1. If you don't have a Brankas user account yet, Register at: link
    2. Login afterwards at: link
    3. Enter the password again to generate a Sandbox API Key at: link
    4. Inject the API Key via an environment variable:
    $ export SANDBOX_API_KEY='XXX' 
    
  3. 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' 
      
  4. Running the application

    $ npm run start