Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 2.06 KB

index.md

File metadata and controls

84 lines (60 loc) · 2.06 KB

Installation & setup

Previous: Contribution guidelines | Next: Releasing a new collection


Prerequisites

This project has a few prerequisites.

  • Git to download the source code
  • When using Docker
  • When not using Docker
    • Node.js for compilation and linting of the API specification. Ideally Node 12 or above.
    • Yarn is the Node package manager for this project. It can be installed with npm i -g yarn if Node is installed.

Download the code

To setup this project, download the source code and install all the dependencies.

git clone git@github.com:box/box-postman.git box-postman
cd box-postman

Set up .env file

Next, copy the .env.example file to create your own environment settings.

cp .env.example .env

This .env is mostly ready to go, all that it needs is the API key for the Postman API.

Run with Node

To run with Node directly, make sure you have Node 14 or higher installed.

yarn install
yarn build:all
# or for each language
yarn build en
yarn build jp

This final yarn release:all command pulls in the English and Japanese OpenAPI spec and builds a Postman Collection for both.

Testing & Linting

With the dependencies installed, it is possible to run tests for the OpenAPI to Postman converter as well as run some basic linters ofer the code.

yarn test

Building without releasing

It is possible to build a Postman Collection without releasing it to the Postman API.

yarn build:all
# or for each language
yarn build en
yarn build jp

Next: Releasing a new collection