op-client
Client library for OpenProject server. Works both in Node.js and browser. Tested with OpenProject v10 and v11.
Installation
npm add op-client
Quick start
;; // reading ENVIRONMENT from .env fileconfig;
Setting up OAuth connection
- Login as admin
- Select Administration / Authentication / OAuth applications
- Follow https://docs.openproject.org/system-admin-guide/authentication/oauth-applications/
Development
# clone repo git clone https://github.com/alexey2baranov/node-op-clientcd node-op-client # run unit tests npm test # to run integrated test run OpenProject, setup OAuth2.0 connection and fill <PROJECT_ROOT>/.env file npm run server:uptouch .envnpm run test:integrationnpm run server:down
<PROJECT_ROOT>/.env file
BASE_URL=http://localhost:8093 CLIENT_ID=...CLIENT_SECRET=...
ToDo
- Add more documentation