The goal of this repo is to get you to a running NextJS app with Optimizely React SDK as fast as possible.
To run the application, you need to have the following installed:
- Visual Studio Code (VSCode)
- Install extension Dev Containers
- Docker or Docker Desktop
To get started with the application, follow these steps:
-
Open Visual Studio Code and press
Ctrl + Shift + P
(orCmd + Shift + P
on macOS) to open the command palette. Type "Dev Containers: Clone Repository in Container Volume" and press Enter. -
Enter the repository address
https://github.com/optimizely/next-js-starter-kit
. -
If asked, choose the
main
branch. -
Once the repository is cloned and opened in the dev container, run the project by opening a terminal in Visual Studio Code (press
Ctrl + `
(orCmd + `
on macOS) and execute the following command:npm run dev
-
Click the link to the http://localhost:3000/ address to open a browser to the running Next app and seeing the quick Start information on the home page.
- Type
Ctrl + C
in the terminal panel where yournpm run dev
was running. - Press
Ctrl + Shift + P
(orCmd + Shift + P
on macOS) to open the command palette. - Select the "Remote: Close Remote Connection" command, which will close the project and exit the running container.
Take a look at the following Optimizely resources to support experimentation and feature flagging for your Next project: