{"id":49819232,"url":"https://github.com/pitgrap/team-mood-tracker","last_synced_at":"2026-05-13T09:43:49.541Z","repository":{"id":349779369,"uuid":"1203874052","full_name":"pitgrap/team-mood-tracker","owner":"pitgrap","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-07T15:20:14.000Z","size":168,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-07T15:26:57.720Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pitgrap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-07T13:18:41.000Z","updated_at":"2026-04-07T15:07:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pitgrap/team-mood-tracker","commit_stats":null,"previous_names":["pitgrap/team-mood-tracker"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pitgrap/team-mood-tracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitgrap%2Fteam-mood-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitgrap%2Fteam-mood-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitgrap%2Fteam-mood-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitgrap%2Fteam-mood-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pitgrap","download_url":"https://codeload.github.com/pitgrap/team-mood-tracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitgrap%2Fteam-mood-tracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32977271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-13T09:43:45.555Z","updated_at":"2026-05-13T09:43:49.533Z","avatar_url":"https://github.com/pitgrap.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Team Mood Tracker\n\nA web application for tracking team mood at the end of each Scrum sprint. Admins create anonymous surveys, share a single link with the team, and view aggregated results with trend charts over time. Data can optionally be pushed to an external Metabase endpoint for reporting.\n\n## Features\n\n- **Anonymous sprint surveys** — two fixed questions scored 1–10 (sprint satisfaction \u0026 personal mood)\n- **Single shared link** — one JWT-secured URL per survey, no user accounts needed for participants\n- **Auto-close** — surveys close automatically once the expected number of responses is reached\n- **Admin dashboard** — manage teams and surveys via a React Admin interface\n- **Team trend charts** — sparkline visualizations showing mood trends across sprints\n- **Metabase integration** — optional HTTP push of results when a survey closes\n\n## Tech Stack\n\n| Layer    | Technology                                        |\n| -------- | ------------------------------------------------- |\n| Frontend | React, TypeScript, React Admin, MUI, Vite         |\n| Backend  | Node.js, Express 5, TypeScript                    |\n| ORM      | Prisma                                            |\n| Database | PostgreSQL                                        |\n| Testing  | Jest (backend), Vitest (frontend), MSW, Supertest |\n\n## Prerequisites\n\n- **Node.js** ≥ 24.0.0\n- **npm** (ships with Node)\n- **PostgreSQL** 16+ (local install or via Docker)\n- **Docker \u0026 Docker Compose** (optional, for the test database)\n\n## Getting Started\n\n### 1. Clone the repository\n\n```bash\ngit clone \u003crepo-url\u003e\ncd team-mood-tracker\n```\n\n### 2. Install dependencies\n\n```bash\nnpm install\n```\n\nThis installs dependencies for both the `frontend` and `backend` workspaces.\n\n### 3. Set up the database\n\nStart a local PostgreSQL instance, or use the provided Docker Compose file:\n\n```bash\ndocker compose -f docker-compose.test.yml up -d\n```\n\n### 4. Configure environment variables\n\nCreate a `.env` file inside the `backend/` directory:\n\n```bash\ncp backend/.env.example backend/.env  # if an example exists, otherwise create manually\n```\n\nRequired variables:\n\n| Variable              | Description                          | Example                                                  |\n| --------------------- | ------------------------------------ | -------------------------------------------------------- |\n| `DATABASE_URL`        | PostgreSQL connection string         | `postgresql://test:test@localhost:5433/moodtracker_test` |\n| `JWT_SECRET`          | Secret for admin auth tokens         | `change-me-jwt-secret`                                   |\n| `SURVEY_TOKEN_SECRET` | Secret for participant survey tokens | `change-me-survey-secret`                                |\n| `FRONTEND_URL`        | URL of the frontend (for CORS)       | `http://localhost:5173`                                  |\n\nOptional variables:\n\n| Variable              | Description                           | Default |\n| --------------------- | ------------------------------------- | ------- |\n| `PORT`                | Backend server port                   | `3001`  |\n| `SURVEY_TOKEN_EXPIRY` | Survey link expiry duration           | `7d`    |\n| `ADMIN_SEED_EMAIL`    | Email for the seeded admin account    | —       |\n| `ADMIN_SEED_PASSWORD` | Password for the seeded admin account | —       |\n| `METABASE_ENDPOINT`   | External Metabase API URL             | —       |\n| `METABASE_API_KEY`    | API key for Metabase push             | —       |\n\n### 5. Run database migrations and seed\n\n```bash\ncd backend\nnpx prisma migrate dev\nnpm run prisma:seed      # seeds questions and admin account (requires ADMIN_SEED_EMAIL/PASSWORD)\ncd ..\n```\n\n### 6. Start development servers\n\nIn two separate terminals:\n\n```bash\n# Terminal 1 — Backend (http://localhost:3001)\nnpm run dev --workspace=backend\n\n# Terminal 2 — Frontend (http://localhost:5173)\nnpm run dev --workspace=frontend\n```\n\nThe frontend is available at [http://localhost:5173](http://localhost:5173) and the admin panel at [http://localhost:5173/admin](http://localhost:5173/admin).\n\n## Running Tests\n\n```bash\n# Backend tests\nnpm test --workspace=backend\n\n# Frontend tests\nnpm test --workspace=frontend\n```\n\n## Linting \u0026 Formatting\n\n```bash\nnpm run lint          # ESLint across all workspaces\nnpm run format        # check formatting with Prettier\nnpm run format:fix    # auto-fix formatting\n```\n\n## Project Structure\n\n```\nteam-mood-tracker/\n├── backend/          # Express API + Prisma ORM\n│   ├── prisma/       # Schema, migrations, seed scripts\n│   └── src/          # Application source (routes, services, middleware)\n├── frontend/         # React + Vite SPA\n│   └── src/          # Components, admin panel, survey pages\n├── docs/             # Project documentation (requirements, architecture, etc.)\n└── package.json      # Root workspace config\n```\n\n## Documentation\n\nAdditional documentation lives in the [`docs/`](docs/) folder:\n\n- [Requirements](docs/requirements.md)\n- [Tech Stack \u0026 Architecture](docs/tech-stack-and-architecture.md)\n- [User Stories](docs/user-stories.md)\n- [Implementation Notes](docs/implementation-notes.md)\n- [Testing Strategy](docs/testing-strategy.md)\n- [Roadmap](docs/roadmap.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitgrap%2Fteam-mood-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpitgrap%2Fteam-mood-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitgrap%2Fteam-mood-tracker/lists"}