{"id":33314514,"url":"https://github.com/pavlovic-bojan/todo-app","last_synced_at":"2026-04-07T16:32:37.411Z","repository":{"id":322327671,"uuid":"1088945416","full_name":"pavlovic-bojan/todo-app","owner":"pavlovic-bojan","description":"My independent project to practice Full Stack development Vue3 \u0026 node/express, E2E QA Automation, Playwright, Allure Report, Page Object Model with JavaScript \u0026 GitHub Actions.","archived":false,"fork":false,"pushed_at":"2025-12-07T17:28:51.000Z","size":278991,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-09T19:33:35.816Z","etag":null,"topics":["api-rest","bootstrap","ci-cd","contract-testing","css","db-testing","deployment-automation","e2e","express","html","load-testing","node","performance-testing","playwright","postgresql","todoapp","vue3"],"latest_commit_sha":null,"homepage":"https://todo-app-frontend-seven-rho.vercel.app","language":"JavaScript","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/pavlovic-bojan.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":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-03T17:10:48.000Z","updated_at":"2025-12-07T17:23:30.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pavlovic-bojan/todo-app","commit_stats":null,"previous_names":["pavlovic-bojan/todo-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pavlovic-bojan/todo-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavlovic-bojan%2Ftodo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavlovic-bojan%2Ftodo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavlovic-bojan%2Ftodo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavlovic-bojan%2Ftodo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pavlovic-bojan","download_url":"https://codeload.github.com/pavlovic-bojan/todo-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pavlovic-bojan%2Ftodo-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["api-rest","bootstrap","ci-cd","contract-testing","css","db-testing","deployment-automation","e2e","express","html","load-testing","node","performance-testing","playwright","postgresql","todoapp","vue3"],"created_at":"2025-11-19T12:01:17.132Z","updated_at":"2026-04-07T16:32:37.398Z","avatar_url":"https://github.com/pavlovic-bojan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📋 Todo App - Full Stack Application\n\nA complete full-stack Todo application with user authentication, built using modern technologies in a monorepo structure.\n\n📊 **Latest Allure Report**: [View Online](https://pavlovic-bojan.github.io/todo-app/)\n---\n\n## 🏗️ Project Structure\n\nThis is a monorepo containing three packages:\n\n```\ntodo-app/\n├── backend/          # Express API with Prisma ORM and PostgreSQL\n├── frontend/         # Vue 3 frontend application\n├── test/             # Enterprise QA Testing Framework\n└── package.json      # Root package.json (monorepo config)\n```\n\n---\n\n## ✨ Features\n\n### Backend\n- ✅ User Authentication (Register, Login, Logout)\n- ✅ Password Reset (Forgot/Reset Password)\n- ✅ Role-based Authorization (Admin/Client)\n- ✅ Todo CRUD operations\n- ✅ JWT Authentication with Refresh Tokens\n- ✅ Swagger API Documentation\n- ✅ Logging with Winston\n- ✅ PostgreSQL Database with Prisma ORM\n- ✅ Security: Helmet, Rate Limiting, CSRF, Input Validation\n- ✅ Comprehensive Unit \u0026 Integration Tests\n\n### Frontend\n- ✅ Vue 3 with Composition API\n- ✅ User Authentication UI\n- ✅ Todo Management Dashboard\n- ✅ Responsive Design with Bootstrap 5\n- ✅ State Management with Pinia\n- ✅ XSS Protection with DOMPurify\n- ✅ Form Validation\n- ✅ Accessibility (WCAG 2.1 AA)\n- ✅ Unit Tests with Vitest\n\n### Testing (Enterprise QA Framework)\n- ✅ **70+ automated tests**\n- ✅ UI Testing (Playwright + Page Object Model)\n- ✅ API Testing (JSON Schema Validation)\n- ✅ Database Testing (Direct SQLite)\n- ✅ Contract Testing (Pact.js)\n- ✅ Performance Testing (Artillery)\n- ✅ Allure Reports (Screenshots, Videos, History, Trends)\n\n---\n\n## 🚀 Quick Start\n\n### Prerequisites\n- Node.js v18.0.0 or higher\n- npm v9.0.0 or higher\n\n### Installation\n\n**1. Install all dependencies:**\n```bash\nnpm install\ncd backend \u0026\u0026 npm install\ncd ../frontend \u0026\u0026 npm install\ncd ../test \u0026\u0026 npm install\n```\n\n**2. Setup Backend:**\n```bash\ncd backend\nnpm run prisma:generate\nnpm run prisma:migrate\n```\n\n**3. Configure Environment:**\n\nCreate `backend/.env`:\n```env\nDATABASE_URL=\"your-db-url\"\nJWT_SECRET=\"your-secret-key-here\"\nJWT_REFRESH_SECRET=\"your-refresh-secret-here\"\nPORT=3000\n```\n\n**4. Start Development Servers:**\n\n```bash\n# Terminal 1 - Backend\ncd backend\nnpm run dev\n\n# Terminal 2 - Frontend\ncd frontend\nnpm run dev\n```\n\n**5. Access Application:**\n- Frontend: https://todo-app-frontend-seven-rho.vercel.app\n- Backend API: https://todo-app-xhn2.onrender.com/api/\n- Swagger Docs: https://todo-app-xhn2.onrender.com/api/docs/\n\n---\n\n## 🧪 Testing\n\n### Run All Tests\n\n```bash\n# Backend Tests\ncd backend\nnpm test                 # All tests with coverage\nnpm run test:unit        # Unit tests only\nnpm run test:integration # Integration tests only\n\n# Frontend Tests\ncd frontend\nnpm test                 # All tests\nnpm run test:coverage    # With coverage\n\n# QA Framework (E2E, API, DB, Contract, Performance)\ncd test\nnpm run test:smoke       # Quick smoke tests\nnpm test                 # All UI tests\nnpm run test:api         # API tests\nnpm run test:db          # Database tests\nnpm run test:performance # Performance tests\n# See test/README.md for Allure report generation\n```\n\n---\n\n## 📚 Documentation\n\n### Main Documentation\n- **[Backend README](backend/README.md)** - Complete backend API documentation, setup guide, and testing instructions\n- **[Frontend README](frontend/README.md)** - Frontend development guide, components, and best practices\n- **[Test README](test/README.md)** - Enterprise QA Testing Framework guide with Allure reports\n- **[Performance Testing README](test/performance/README.md)** - Performance testing scenarios and metrics\n\n### Quick Links\n- **Backend API Docs:** https://todo-app-xhn2.onrender.com/api/docs/\n- **Latest Allure Report:** [View Online](https://pavlovic-bojan.github.io/todo-app/)\n\n---\n\n## 🛠️ Tech Stack\n\n### Backend\n- **Runtime:** Node.js 18+\n- **Framework:** Express.js\n- **Database:** SQLite + Prisma ORM\n- **Authentication:** JWT + bcrypt\n- **Validation:** express-validator\n- **Security:** Helmet, Rate Limiting, CSRF\n- **API Docs:** Swagger\n- **Logging:** Winston\n- **Testing:** Jest + Supertest\n\n### Frontend\n- **Framework:** Vue 3 (Composition API)\n- **Build Tool:** Vite\n- **State Management:** Pinia\n- **Routing:** Vue Router\n- **UI Framework:** Bootstrap 5\n- **HTTP Client:** Axios\n- **Security:** DOMPurify (XSS protection)\n- **Testing:** Vitest + @vue/test-utils\n\n### Testing\n- **E2E:** Playwright\n- **API Testing:** Axios + Ajv (JSON Schema)\n- **DB Testing:** better-sqlite3\n- **Contract Testing:** Pact.js\n- **Performance:** Artillery\n- **Reporting:** Allure (with video, screenshots, trends)\n\n---\n\n## 📁 Project Structure\n\n```\ntodo-app/\n│\n├── backend/                    # Express Backend API\n│   ├── src/\n│   │   ├── api/\n│   │   │   ├── controllers/    # Request handlers\n│   │   │   ├── services/       # Business logic\n│   │   │   ├── middleware/     # Auth, validation, error handling\n│   │   │   ├── routes/         # API routes\n│   │   │   └── validations/    # Input validation\n│   │   ├── config/             # Configuration files\n│   │   └── __tests__/          # Unit \u0026 integration tests\n│   ├── prisma/\n│   │   └── schema.prisma       # Database schema\n│   └── package.json\n│\n├── frontend/                   # Vue 3 Frontend\n│   ├── src/\n│   │   ├── components/         # Vue components\n│   │   ├── views/              # Page views\n│   │   ├── composables/        # Composition API hooks\n│   │   ├── stores/             # Pinia stores\n│   │   ├── router/             # Vue Router config\n│   │   ├── services/           # API client\n│   │   └── __tests__/          # Unit tests\n│   └── package.json\n│\n├── test/                       # QA Testing Framework\n│   ├── e2e/                    # UI tests (Playwright)\n│   ├── page-objects/           # Page Object Model\n│   ├── api/                    # API tests\n│   ├── database/               # DB tests\n│   ├── contract/               # Contract tests (Pact)\n│   ├── performance/            # Performance tests (Artillery)\n│   ├── helpers/                # Test utilities\n│   ├── fixtures/               # Test data\n│   └── config/                 # Test configuration\n│\n└── package.json                # Root monorepo config\n```\n\n---\n\n## 🎯 Features Highlights\n\n### Security\n- ✅ JWT with refresh tokens (httpOnly cookies)\n- ✅ Password hashing (bcrypt with 12 rounds)\n- ✅ Rate limiting (auth endpoints)\n- ✅ CSRF protection\n- ✅ Input validation \u0026 sanitization\n- ✅ XSS protection\n- ✅ Security headers (Helmet)\n- ✅ SQL injection prevention (Prisma)\n\n### Best Practices\n- ✅ Monorepo architecture\n- ✅ Environment-based configuration\n- ✅ Comprehensive error handling\n- ✅ Logging (Winston)\n- ✅ API documentation (Swagger)\n- ✅ Code quality (ESLint, Prettier)\n- ✅ **95%+ test coverage**\n- ✅ CI/CD ready\n\n### Testing Excellence\n- ✅ **70+ automated tests**\n- ✅ **5 test layers** (UI, API, DB, Contract, Performance)\n- ✅ Page Object Model (POM)\n- ✅ JSON Schema validation\n- ✅ Allure reports with video \u0026 screenshots\n- ✅ Test history \u0026 trends\n- ✅ Flaky test detection\n\n---\n\n## 📊 Test Coverage\n\n| Component | Coverage | Tests |\n|-----------|----------|-------|\n| **Backend** | 95%+ | 50+ unit \u0026 integration tests |\n| **Frontend** | 90%+ | 30+ unit tests |\n| **E2E** | Full | 40+ UI tests |\n| **API** | 100% | 20+ API tests |\n| **Database** | 100% | 15+ DB tests |\n| **Performance** | - | 4 scenarios (Load, Stress, Spike, Endurance) |\n\n---\n\n## 🚢 Deployment\n\n### Backend Deployment\n```bash\ncd backend\nnpm run prisma:generate\nnpm run prisma:migrate\nnpm start\n```\n\n### Frontend Deployment\n```bash\ncd frontend\nnpm run build\n# Serve dist/ folder with nginx/apache\n```\n\n### Environment Variables\nSee [backend/ENV_SETUP.md](backend/ENV_SETUP.md) for complete list.\n\n---\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create feature branch: `git checkout -b feature/amazing-feature`\n3. Commit changes: `git commit -m 'Add amazing feature'`\n4. Push to branch: `git push origin feature/amazing-feature`\n5. Open Pull Request\n\n---\n\n## 📝 License\n\nISC License - See LICENSE file for details.\n\n---\n\n## 🎉 Summary\n\nThis is a **production-ready** full-stack application with:\n- ✅ Complete authentication system\n- ✅ RESTful API with Swagger docs\n- ✅ Modern Vue 3 frontend\n- ✅ **Enterprise-grade testing** (70+ tests, 5 layers)\n- ✅ Security best practices\n- ✅ Comprehensive documentation\n- ✅ 95%+ test coverage\n\n**Ready to use!** 🚀\n\n---\n\n## 🆘 Support\n\n- **Backend Issues:** See [backend/README.md](backend/README.md)\n- **Frontend Issues:** See [frontend/README.md](frontend/README.md)\n- **Testing Issues:** See [test/README.md](test/README.md)\n\n---\n\n**Happy Coding!** 🎊\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavlovic-bojan%2Ftodo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpavlovic-bojan%2Ftodo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpavlovic-bojan%2Ftodo-app/lists"}