I had started to learn Python and gotten wrapped around the axel with building the app until I was able to find a YouTube video yesterday. To give credit to him: https://youtu.be/pwA_Ehp2SMY This allowed me to watch the videos, learn from your documentation and worry less about the coding of an app. To test this out you must:
- Download the Visual Studio Code from: https://code.visualstudio.com/download
- Download React from https://reactjs.org
- Install both applications
- Follow instructions on the above YouTube Video at time stamp 1:19.
- Download and open the folder from: https://github.com/theculby5/launchdarkly.git
- Open up App.js in the src folder.
- Make sure that yo now can see the example of the app in your browser: http://localhost:3000
- Modify the "this.ldclient = LDClient.initialize('6226a1e75f750f152448277d', user)" with your client side key.
- Turn on Targeting for the feature.
- Set the server to false on the Default Rule
- Match the user key for the user that you want to target.
- You will see that when your refress the browser that the sorting will switch to either "Time" or "Natural" sorting depending on the enabling of the feature flag or the changing of the user key.
- This will also report data to the console as you change the user key in the app.
- If you change the default rule for the feature flag in the targeting tab, you will see on the browser how quickly the app is updated.