[](https://badge.fury.io/js/@bucketeer%2Fnode-server-sdk)
npm install bkt-node-server-sdk
Bucketeer is an open-source platform created by CyberAgent to help teams make better decisions, reduce deployment lead time and release risk through feature flags. Bucketeer offers advanced features like dark launches and staged rollouts that perform limited releases based on user attributes, devices, and other segments.
Getting started using Bucketeer SDK.
See our documentation to install the SDK.
We would ❤️ for you to contribute to Bucketeer and help improve it! Anyone can use and enjoy it!
Please follow our contribution guide here.
Before building the example, please follow the following steps.
- Ensure that you have the yarn installed.
- Configure the host and the token info in the index.ts.
- Move to the example directory cd example.
- Install dependencies make init.
``bash`
make start
If you want to use a published SDK instead of a local one, replace the line where it imports the library in the example code
Install the prerequisite tools.
#### Setup node version
Please look at the .nvmrc file to check the node version.
`bash`
nvm use
#### Install dependencies
`bash`
make init
#### Format
`bash`
make fmt
#### Lint & Type check
`bash`
make lint
make type-check
#### Build
`bash`
make build
#### Run unit tests
`bash`
make test
#### Run e2e tests
Configure the host and the token info in the ava-e2e.config.mjs, then run the following command.
`bash`
make e2e
Add the version field to package.json, then run the following command.
`bash`
export NPM_TOKEN=
make publish
directory. The test files should following snake_case naming convention. Its differ from the library code which uses camelCase.
- Use ava as the test runner. You can find the configuration in the ava.config.mjs file.
- Run all tests using make test command.
- Run single test using make test-single Note: The publishing process is automated using GitHub Actionshttps://github.com/bucketeer-io/node-server-sdk/blob/master/.github/workflows/release.yml to publish it when the released tag is created.