Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation Openfeature server sdk #1339

Merged
merged 1 commit into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,15 +200,15 @@ _In this example, we are using the javascript SDK, but it is still relevant for
#### Install dependencies

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

#### Init your Open Feature client

In your app initialization you have to create a client using the Open Feature SDK and initialize it.

```javascript
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const {describe, expect, it, beforeEach, afterEach } = require('@jest/globals');
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");
describe('Provider tests', () => {
let goffClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ The first things we will do is install the **Open Feature SDK** and the **GO Fea
<TabItem value="yarn" label="yarn">

```shell
yarn add @openfeature/js-sdk @openfeature/go-feature-flag-provider
yarn add @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
<TabItem value="npm" label="npm">

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
Expand All @@ -40,7 +40,7 @@ This code block shows you how you can create a client that you can use in your a
<TabItem value="javascript" label="JavaScript">

```javascript
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");


Expand All @@ -57,7 +57,7 @@ const featureFlagClient = OpenFeature.getClient('my-app')
<TabItem value="ts" label="TypeScript">

```typescript
import {EvaluationContext, OpenFeature} from "@openfeature/js-sdk";
import {EvaluationContext, OpenFeature} from "@openfeature/server-sdk";
import {GoFeatureFlagProvider} from "@openfeature/go-feature-flag-provider";


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ _In this example we are using the javascript SDK, but it is still relevant for a
### Install dependencies

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

### Init your Open Feature client

In your app initialization your have to create a client using the Open Feature SDK and initialize it.

```javascript
const {OpenFeature} = require("@openfeature/js-sdk");
const {OpenFeature} = require("@openfeature/server-sdk");
const {GoFeatureFlagProvider} = require("@openfeature/go-feature-flag-provider");


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ The first things we will do is install the **Open Feature SDK** and the **GO Fea
<TabItem value="yarn" label="yarn">

```shell
yarn add @openfeature/js-sdk @openfeature/go-feature-flag-provider
yarn add @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
<TabItem value="npm" label="npm">

```shell
npm i @openfeature/js-sdk @openfeature/go-feature-flag-provider
npm i @openfeature/server-sdk @openfeature/go-feature-flag-provider
```

</TabItem>
Expand Down