This application demonstrates how CxReports can be integrated into third-party applications.
Before you begin, ensure you have the following installed on your system:
- Node.js (v18.17 or later)
- macOS, Windows (including WSL), and Linux are supported.
Follow these steps to set up and run the application:
-
Clone the GitHub repository:
git clone https://github.com/cx-reports/consumer-demo-app-nextjs.git
-
Navigate to the project directory and install the necessary packages:
cd consumer-demo-app-nextjs npm install
-
Create a .env.local file in the root directory of the project.
-
Add the following environment variables to the .env.local file, replacing the placeholder values with your actual values:
BASE_URL="your_base_url" DEFAULT_WORKSPACE_ID=your_workspace_id AUTH_TOKEN="your_auth_token"
-
Start the development server:
npm run dev
-
Open your browser and visit http://localhost:3000 to see the application in action.
For further assistance, please contact our support team or check out the official documentation.