Before starting, ensure you have the following installed:
node --version
in your terminal.
First, let's create our project structure. Create a new directory and save the following setup script:
#!/bin/bash
# setup.sh content here
${setup.sh content}
After running the setup script, you'll need to configure your environment:
SIGMA_API_URL=https://api.sigmacomputing.com/v2
SIGMA_CLIENT_ID=your_client_id_here
SIGMA_CLIENT_SECRET=your_client_secret_here
PORT=3000
The following client handles all Sigma API interactions:
// src/api/sigma-client.js content here
${sigma-client.js content}
Use this template for embedding your Sigma dashboards:
${dashboard-template content}
Follow these steps to deploy your dashboard:
npm run build
npm start