A demo of LaunchDarkly, React, and Vite, using the Pokémon API!

Overview

Pokémon Feature Flags demo

Netlify Status

Here's a demo for integrating feature flags into a React project! Built with React, Vite, the PokeAPI, and LaunchDarkly!

When the feature flag is off, only Normal type Pokémon can be searched for in the app. When the flag is turned on, then any Pokémon can be queried!

Deploy your own

LaunchDarkly setup

Once you've signed up for LaunchDarkly, create a feature flag. I call mine testaroni, and you should too if you want this to work out of the box. Otherwise, you can change it in the isAllowed function in Pokemon.jsx. Under Flag variations, make it a String type and add an "all" type, and any other Pokémon types you'd like to include:

image

After that, you're all set! You can toggle it on and off in the LaunchDarkly UI, set the default rules, segment which users get which types, and more.

Netlify setup

Click this button to deploy your own version of this project to Netlify!

Deploy to Netlify

You'll need to add your environment variables after cloning. Structure your .env.local file like so (you can find your client ID under Account Settings => Projects):

VITE_LD_CLIENT_KEY=your_key

...and then plop it into Netlify, and you're done!

You might also like...

The official pokemon website is not that cool? Here is the alternative 😉

The official pokemon website is not that cool? Here is the alternative 😉

Pokemon Awesome Pokemon Data All Pokemon data used in this project comes from PokeAPI GraphQL Beta. Playground: https://beta.pokeapi.co/graphql/consol

Dec 23, 2022

Choosing a modern JavaScript UI framework, Pokemon-style.

ChooseYourFramework Choosing a modern JavaScript UI framework, Pokemon-style. Usage This is a hacked-together fork of FullScreenShenanigans/FullScreen

Nov 12, 2022

Pokémon: Duel Battle

Pokémon: Duel Battle

Pokémon: Duel Battle Sebuah Web Apps yang dibuat sebagai syarat kelulusan Dicoding Submission Belajar Fundamental Front-End Web Development. Tech Proj

Sep 16, 2022

vite-react-typescript with eslint and prettier predefined settings

vite-react-typescript with eslint  and prettier predefined settings

Vite + React + Typescript + Eslint + Prettier A starter for React with Typescript with the fast Vite and all static code testing with Eslint and forma

Dec 30, 2022

Api for playing around with dummy data. Feel free to use it in your demo projects, tutorials, or testing tasks.

dummy-api Api similar to dummy-api Api for playing around with dummy data. Feel free to use it in your demo projects, tutorials, or testing tasks. All

Jan 7, 2023

GoDice JavaScript API (with demo)

GoDice JavaScript API (with demo) Overview Use the GoDice JavaScript API to integrate GoDice functionality into your own JavaScript applications. Here

Dec 14, 2022

A demo for E2E build piplelines in Design Systems using monorepo's and automation :zap:.

A demo for E2E build piplelines in Design Systems using monorepo's and automation :zap:.

Design System Pipelines demo What is it? A working demonstration for end-to-end build piplelines in Design Systems using Primer Primitives, Primer CSS

Oct 20, 2022

Keyauth v1 example, includes a demo and is encrypted using aes.

Keyauth v1 example, includes a demo and is encrypted using aes.

Keyauth Keyauth V1.0 api wrapper in nodejs that includes requests being encrypted using aes. Discord & Support Server . Keyauth Example const Keyauth

Nov 27, 2022

1on1 call demo using Chime SDK meetings, Next.js, AppSync, and CDK!

1on1 call demo using Chime SDK meetings, Next.js, AppSync, and CDK!

Chime SDK Meetings 1on1 call demo with Next.js / AppSync / CDK This is a sample project to demonstrate Chime SDK meetings for one-on-one call with Nex

Dec 15, 2022
Owner
Cassidy Williams
Making memes and dreams... and software
Cassidy Williams
a cobbled together alternative UI to launchdarkly, allowing read/write access via LD API access token

discount-launchdarkly a cobbled together alternative UI to launchdarkly, allowing read/write access via LD API access token setup make sure you have a

null 9 Oct 19, 2022
"Choose your Pokemon" is a Webpack project meant to fetch data from two different APIs: PokéAPI and Involvement API

"Choose your Pokemon" is a Webpack project meant to fetch data from two different APIs: PokéAPI and Involvement API. Here we display a list of 20 Pokemons for whom one can like, display more info, and comment; all based on the data from these two external resources.

Carlos HerverSolano 19 Mar 31, 2022
Nftix-demo-ui - Demo UI used in my NFT course on Egghead.io

NFTix Demo UI This repository contains the UI used for my Egghead course on building a NFT ticketing system ?? ?? If you're watching the videos, use t

Ryan Harris 10 Dec 17, 2022
pokedev.js is a tool make to help developers get info about a pokemon and use it in any project with ease.

pokedev.js pokedev.js is a tool make to help developers get info about a pokemon and use it in any project with ease. Quick Links pokedev.js Quick Lin

pokedev.js 4 Apr 4, 2022
A pokemon card battle app that can evolve them and see their battle history.

BattlePoke ?? About An application of an Pokemon card battle game where each player initially receives 3 cards and can start to battle and gain evolut

Mateus Cruz Rossetto 3 Jun 17, 2022
PoGOEvents is a Scriptable widget that displays current and upcoming Pokemon GO events.

PoGOEvents PoGOEvents is a Scriptable widget that displays current and upcoming Pokemon GO events. All event data is gathered from from ScrapedDuck, w

Anthony 33 Nov 12, 2022
An interactive encyclopedia of Pokémon.

Pokédex An interactive encyclopedia encompassing data on the various mythical creatures found throughout the world of the universally-loved, multimedi

Zane 18 Dec 9, 2022
Group project where, we have built a simple quiz to test your Pokemon knowledge

Pokemon-Project For our first team project we have built a Pokemon Quiz. The Team Damon Spriggle Chris Burton Fuji Sin Oscar Hurtado Christopher Lee A

Chris Burton 2 Apr 25, 2022
A pokemon-like project game where you level up by hacking your neighbor.

CTF BourgPalette A pokemon-like project game where you level up by hacking your neighbor. You play as a new hacker. You are not trying to capture all

VB 23 Dec 27, 2022
Este repositorio contendrá el proyecto final de Angular con temática de Pokemon Unite

ProyectoFinal This project was generated with Angular CLI version 14.0.2. Development server Run ng serve for a dev server. Navigate to http://localho

null 2 Jun 19, 2022