Skip to content

Demo Available for CSM's and others to upskill on the Launchdarkly start up process

Notifications You must be signed in to change notification settings

cgreenld/csm-dora-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cs-dora-demo

Demo for the for csm's and others to simulate the customer experience getting started with LaunchDarkly. This assumes some knowledge of git and github as a place to store and update code, but tries to walk through the python setup with some specificity.

Disclosure - the instrucitons for running this have been written using macOS and python10 as a reference point, this may result in some mismatch is trying to build on a windows/linux machine or with other software.

Overview

  1. Get your environment set up
  2. Get your code running WITHOUT a flags
  3. Get your code running WITH a flag
  4. Expand

Access Needed

  • If you are on mac, make sure you have access to git. Else run xcode-select --install
  • You will need launchDarkly github access and the ability to pull down the local repo
  • An editor, I recommend Visual Studio Code for this
    • https://code.visualstudio.com/download
    • once instlled look for the extensions tab on the left hand side. Here add the python extension to vscode, this will make developement and management easier
    • There is also an extension for LaunchDarkly that I would recommend adding as well
      • to full utalize this, you will need to add an environment key. I would do this after completing the inital run and flagging.
  • Virtualized Environment Intro: https://towardsdatascience.com/virtual-environments-104c62d48c54
  • Python Installed
  • NOTE: Tech stacks vary from company to company, not everyone will use python or flask. However, these tools will help you quickly get to the core of our product - the flag.

Running the code

Let's add a Flag and make sure it is initalized

  • For reference
  • Open dorah.py
    • stop the code if it is still running (ctrl + C)
    • You will find a few comments
      • inline comments are denoted in python with a "#"
      • Multiline comments are denoted with a """ at the beginning and end
    • These will have the string STEP #: [Instructions] with some context on what is going on
    • This will let you know what lines to uncomment, and what the python code is doing to interact with Launchdarkly
    • let's run the code again once you have added LaunchDarkly back into the mix, keep an eye on the terminal to verify implimenenation!
  • YOU HAVE GATHERED A FLAG!!
    • congratulations, now it is up to you to find some funcationality to turn on and off, maybe change where a link takes you based on a flag???

Advanced Topics

About

Demo Available for CSM's and others to upskill on the Launchdarkly start up process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published