Sum is a decentralized application for conducting anonymous employee pulse surveys. It leverages iExec for confidential data processing, Civic for authentication, Chainlink Functions for conditional off-chain actions, and OriginTrail for publishing aggregated reports. The frontend and API backend are built with Next.js, styled with Tailwind CSS and shadcn components.
/apps/frontend: Next.js application for Employee and HR Admin UIs, and API routes for temporary data storage./packages/iexec-app: Code for the iExec confidential computing application./packages/chainlink-contract: Smart contract for triggering Chainlink Functions./scripts/origintrail-publisher: Scripts for publishing aggregated data to OriginTrail DKG.
- Employee UI: Submit anonymous, encrypted survey responses (11 rating questions, 1 text question; all ratings use a 1–10 scale)
- Admin UI: View submitted survey data, trigger aggregation, and view anonymized report (iExec integration functional)
- API:
/api/submitSurvey(POST),/api/getSurveyData(GET) - Uses shadcn for UI components and Tailwind CSS for styling
- Install dependencies:
cd apps/frontend pnpm install # or npm install or yarn install
- Run the development server:
pnpm dev # or npm run dev or yarn dev - Open http://localhost:3000 in your browser.
- Employee survey data is encrypted client-side using iExec DataProtector and stored via API.
- Admin UI displays all submitted survey data and supports aggregation/reporting via iExec iApp.
- The iApp expects an array of survey responses, each with a
responsesobject keyed byquestionId. - See
.idea/PRD.mdand.idea/TASKS.mdfor requirements and progress.
- Employee and Admin UIs are functional for demo.
- iExec aggregation, Chainlink, and OriginTrail integrations are in progress.
(More details to be added)