| tags | ||||||
|---|---|---|---|---|---|---|
|
You can use npm or pnpm (or probably yarn), but this README shows examples using pnpm
You must first download the example with the following command:
git clone --depth=1 https://github.com/adap/flower.git _tmp && mv _tmp/intelligence/ts/examples/encrypted . && rm -rf _tmp && cd encryptedYou can then install the project dependencies with:
pnpm iIn order to run this example, you need to update `fi.apiKey = 'REPLACE_HERE'` inside `src/index.ts` with a valid API key (if you don't have one, you can register [here](https://flower.ai/intelligence/)).
Then, you need to build the project:
pnpm buildIn order to run the example once the project has been built:
node dist/index.jsYou can also use `pnpm start` to perform the installation, build, and run steps at the same time.