Code Monkey home page Code Monkey logo

feature-flags-react-workshop's Introduction

Feature Flags Workshop - React Template

License: MIT Node version React version

This repository is a template for the Feature Flags Workshop. It's a boilerplate project that leverages React to demonstrate the powerful concept of feature flags in a practical, hands-on workshop.

๐ŸŽฏ Overview

Feature flags, or feature toggles, are a software development technique that allows developers to enable or disable features in a live environment without deploying new code. This workshop guides you through implementing your first feature flag using React.

๐Ÿ’พ Prerequisites

Ensure you have the following installed on your local machine:

  • Node.js (v12.x or newer)
  • npm (usually bundled with Node.js)

โš™๏ธ Installation & Set Up

  1. Clone this repository to your local machine:

    git clone https://github.com/<your-username>/feature-flags-react-workshop.git
    
  2. Navigate into the project directory:

    cd feature-flags-react-workshop
    
  3. Install the project dependencies:

    npm install
    

๐Ÿš€ Running the Application

To start the server, use the following command:

npm start

By default, the application runs on port 3000.

๐Ÿ—๏ธ Usage

Upon setting up the project, you can start implementing feature flags. The workshop exercises are located in the /docs directory. Each exercise will guide you through the process of implementing a feature flag.

๐Ÿ“‹ Environment Variables

This project uses environment variables for configuration. To set up, create a .env file in your project root and set the variables with REACT_APP_ prefix. For example:

REACT_APP_FEATURE_FLAG_CLIENT_ID=ClientID

For sharing, you can create a .env.example file with only the keys. Remember not to commit .env file to the version control.

โœ… Testing

To run tests, use the following command in the project root directory:

npm test

๐Ÿค Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page for any outstanding items. If you want to contribute, please follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <project>/<location>
  5. Create the pull request.

Alternatively, see the GitHub documentation on creating a pull request.

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE.md file for details.

๐Ÿ’ฌ Contact

If you have any questions, concerns, or feedback - feel free to reach out!

๐Ÿ™ Acknowledgements

We would like to extend our sincerest gratitude to all the contributors whose efforts have made this project possible. Your contribution to open-source is greatly appreciated! Happy coding!

feature-flags-react-workshop's People

Watchers

Kartik Manimuthu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.