Previous: Contribution guidelines | Next: Releasing a new collection
This project has a few prerequisites.
Git
to download the source code- When using Docker
- A local installation of Docker. I'd recommend the Docker Desktop on Mac.
- Visual Studio Code
- The Remote Development Pack for VS Code which allows for development in a containerized Node environment.
- When not using Docker
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
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.
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.
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
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