> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/examples/nodejs-project.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Develop a Node.js project with React Redux using the FME JavaScript SDK

Learn how to integrate the FME JavaScript SDK into a Node.js project that uses React and Redux.

## Overview

This example demonstrates how to integrate the Harness Feature Management Experimentation (FME) JavaScript SDK within a Node.js project that uses React and Redux. The sample project illustrates how to configure the SDK to manage feature flags, evaluate features, and respond to flag changes in a React Redux environment.

Whether you are building a new app or adding feature flagging capabilities to an existing React Redux project, this example provides a straightforward starting point. It covers setup, configuration, and usage patterns to help platform and release engineering teams speed up development and enforce governance using Harness FME.

## Environment

This example uses the following environment:

* React 16.4.2
* Redux 4.0.0
* React-Redux 5.0.7
* Node.js (npm) 5.6.0

## Get started

{% hint style="danger" %}
This project uses React and Redux to manage application state, incorporating feature flag evaluations into the Redux store for consistent state management across components.

Make sure your authorization key and client keys are securely managed and not exposed publicly.
{% endhint %}

### 1. Install dependencies

Complete the following steps to install the project dependencies:

1. Run the following command to install the necessary dependencies: `npm install`.

### 2. Configure the SDK

Complete the following steps to configure the SDK:

1. Open the `./src/Split.js` file.
2. Replace the placeholders for the authorization key, client keys, and traffic types with your Harness FME environment details.

### 3. Define features

Complete the following steps to define your features:

1. Open the `./src/constants/features.js` file.
2. List the feature flags you want your application to evaluate and manage.

### 4. Start the application

Complete the following steps to start the application:

1. Run this command to launch the app locally: `npm start`.
2. The application will be accessible at <http://localhost:4200/>.

Go to the FME [JavaScript SDK documentation](https://developer.harness.io/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/client-side-sdks/client-side-standard-sdks/javascript-sdk.md) for advanced usage and configuration options.

## Next steps

* Go to [Node.js SDK](https://developer.harness.io/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/server-side-sdks/nodejs-sdk.md) to review the full Node.js SDK configuration and methods.
* Go to [Validate your SDK setup](https://developer.harness.io/feature-management-experimentation/new-to-fme/sdks-and-customer-deployed-components/validate-sdk-setup.md) to confirm that your SDK is configured correctly.

{% @harness-feedback/feedback %}
