# bona-iqiniso-services-v3

## How to generate API services
1. Checkout the project and run `npm install`
2. Make sure you have BI backend server up and running on port 8080 (http://localhost:8080/v2/api-docs)
3. Run `npm run generate`. This should create a folder ./lib and create some ts files
4. Run `npm run build`. This should create a folder ./dist and publish to npm as a package

Last command will increment the version number and publush as a npm package. You can install it on your project with `npm i bona-iqiniso-api` or `npm i bona-iqiniso-api@VERSION`

## Troubleshooting
Make sure files are committed to git before running `npm run build`. If you are getting a 'Git working directory not clean.' error, make sure all the modified files are committed to git.