Skip to content

A Next.js sample application that showcases A/B testing using ConfigCat's Feature Flag Management system and Amplitude

License

Notifications You must be signed in to change notification settings

configcat-labs/ab-testing-nextJS-amplitude-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Books

This repository contains the source code for the 'Books' app in the article: Implementing A/B testing in a Next.js app with ConfigCat & Amplitude. Read the blog post here

bookpair

Books app with A and B versions

If a user clicks the 'Download PDF' button, the app sends data to Amplitude so we know the number of users that clicked the button for each version.

Build & Run

If you want to run the app on your development machine, you'll need to have Git and Node.js installed.

Follow these steps to get the app running on your machine:

  • Click on the green "Code" button in the repository's page and copy the URL in the text field that pops up.
  • Open the command line terminal on your computer.
  • Run git clone https://github.com/configcat-labs/ab-testing-nextJS-amplitude-sample.git.
  • Navigate into the folder 'ab-testing-nextJS-amplitude-sample'.
  • Install the dependencies.
npm install
  • Run npm run dev.

The app should now be running on localhost:3000. Open up localhost:3000 in your browser to view the app.

Learn more

Here are some helpful resources for further learning:

ConfigCat also supports many other frameworks and languages. Check out the full list of supported SDKs here

You can also explore other code samples for various languages, frameworks, and topics here in the ConfigCat labs on GitHub.

Keep up with ConfigCat on Twitter, Facebook, LinkedIn, and GitHub.

Author

Zayyad Muhammad Sani

Contributions

Contributions are welcome!

About

A Next.js sample application that showcases A/B testing using ConfigCat's Feature Flag Management system and Amplitude

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published