{"id":24029942,"url":"https://github.com/holedev/vnoi-microservice","last_synced_at":"2025-07-06T20:08:11.309Z","repository":{"id":271396907,"uuid":"743435413","full_name":"holedev/vnoi-microservice","owner":"holedev","description":"This application is a platform same as Leetcode and combine with Edpuzzle, Udemy.","archived":false,"fork":false,"pushed_at":"2025-06-04T03:13:33.000Z","size":2203,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T17:02:41.252Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/holedev.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}},"created_at":"2024-01-15T08:28:04.000Z","updated_at":"2025-06-04T03:13:35.000Z","dependencies_parsed_at":"2025-06-06T17:02:44.591Z","dependency_job_id":null,"html_url":"https://github.com/holedev/vnoi-microservice","commit_stats":null,"previous_names":["holedev/vnoi-microservice"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/holedev/vnoi-microservice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fvnoi-microservice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fvnoi-microservice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fvnoi-microservice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fvnoi-microservice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holedev","download_url":"https://codeload.github.com/holedev/vnoi-microservice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holedev%2Fvnoi-microservice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263966170,"owners_count":23536814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2025-01-08T17:05:02.916Z","updated_at":"2025-07-06T20:08:11.304Z","avatar_url":"https://github.com/holedev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VNOI Microservice\n\nA modern, distributed online judge system designed to support programming education and competitive programming in Vietnam. Built with a microservices architecture for scalability, maintainability, and reliability.\n\n## 📖 Documentation\n\nFor detailed documentation, please visit our [Gitbook](https://vnoi-doc.dorara.id.vn/)\nAdditional project details can be found in [docs/overview.md](docs/overview.md).\n\n## 🏗️ Architecture Overview\n\n```mermaid\ngraph TD\n    Client[React Frontend]\n    Gateway[API Gateway]\n\n    subgraph Frontend\n        Client\n    end\n\n    subgraph Backend Services\n        Gateway\n        User[User Service]\n        Exercise[Exercise Service]\n        Learning[Learning Service]\n        Media[Media Service]\n        Stats[Statistics Service]\n        Common[Common Service]\n    end\n\n    subgraph Infrastructure\n        MQ[RabbitMQ]\n        DB[(MongoDB)]\n        Prometheus\n        Grafana\n    end\n\n    Client --\u003e Gateway\n    Gateway --\u003e User\n    Gateway --\u003e Exercise\n    Gateway --\u003e Learning\n    Gateway --\u003e Media\n    Gateway --\u003e Stats\n\n    User --\u003e Common\n    Exercise --\u003e Common\n    Learning --\u003e Common\n    Media --\u003e Common\n    Stats --\u003e Common\n\n    User --\u003e DB\n    Exercise --\u003e DB\n    Learning --\u003e DB\n    Media --\u003e DB\n    Stats --\u003e DB\n\n    User --\u003e MQ\n    Exercise --\u003e MQ\n    Learning --\u003e MQ\n    Media --\u003e MQ\n    Stats --\u003e MQ\n\n    Prometheus --\u003e User\n    Prometheus --\u003e Exercise\n    Prometheus --\u003e Learning\n    Prometheus --\u003e Media\n    Prometheus --\u003e Stats\n\n    Prometheus --\u003e Grafana\n```\n\n## 🚀 Features\n\n### Frontend\n\n- Modern React-based UI with Material-UI components\n- Advanced code editor with syntax highlighting\n- Real-time collaboration tools\n- Video content streaming\n- Interactive learning features\n- Comprehensive testing suite (Cypress)\n- Performance monitoring and optimization\n\n### Backend Services\n\n#### User Service\n\n- Authentication and authorization\n- User profile management\n- Role-based access control\n- Session management\n\n#### Exercise Service\n\n- Programming problem management\n- Solution submission handling\n- Automated testing\n- Plagiarism detection\n\n#### Learning Service\n\n- Course management\n- Content organization\n- Progress tracking\n- Achievement system\n\n#### Media Service\n\n- File upload and management\n- Video streaming\n- Content delivery\n- Storage optimization\n\n#### Statistics Service\n\n- Performance analytics\n- Usage statistics\n- Progress tracking\n- Reporting tools\n\n#### Common Service\n\n- Shared utilities\n- Business logic\n- Common interfaces\n- Reusable components\n\n## 🛠️ Technical Stack\n\n### Frontend\n\n- React 18\n- Vite\n- Material UI\n- CodeMirror\n- React Router\n- Axios\n- React Query\n- Testing:\n  - Vitest\n  - Cypress\n  - K6 for load testing\n\n### Backend\n\n- Node.js\n- Express.js\n- gRPC\n- MongoDB\n- RabbitMQ\n- Testing:\n  - Jest\n  - Supertest\n\n### Infrastructure\n\n- Docker\n- Docker Compose\n- Prometheus\n- Grafana\n- Firebase\n\n## 🔧 Development Setup\n\n### Prerequisites\n\n- Node.js (Latest LTS)\n- pnpm\n- Docker and Docker Compose\n- MongoDB\n- RabbitMQ\n\n### Installation\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/holedev/vnoi-microservice.git\ncd vnoi-microservice\n```\n\n2. Install dependencies\n\n```bash\n# Root dependencies\npnpm install\n\n# Client dependencies\ncd client\npnpm install\n\n# Server dependencies\ncd ../server\npnpm install\n```\n\n3. Configure environment variables\n\n```bash\n# Client\ncp client/.env.example client/.env\n\n# Server services\ncp server/user/.env.example server/user/.env\ncp server/exercise/.env.example server/exercise/.env\ncp server/learning/.env.example server/learning/.env\ncp server/media/.env.example server/media/.env\ncp server/statistics/.env.example server/statistics/.env\n```\n\n4. Start development servers\n\n```bash\n# Start all services with Docker\ndocker-compose -f server/docker-compose.dev.yml up\n\n# Start frontend\ncd client\npnpm dev\n```\n\n## 📝 Development Guidelines\n\n### Code Style\n\n- ESLint for linting\n- Prettier for formatting\n- Conventional commits\n- Comprehensive documentation\n\n### Git Workflow\n\n1. Branch naming:\n\n   - feature/\\* - New features\n   - fix/\\* - Bug fixes\n   - docs/\\* - Documentation\n   - refactor/\\* - Code refactoring\n\n2. Commit messages:\n   - feat: Add new feature\n   - fix: Bug fix\n   - docs: Documentation changes\n   - refactor: Code refactoring\n   - test: Adding tests\n   - chore: Maintenance tasks\n\n### Testing Requirements\n\n- Unit tests for all business logic\n- Integration tests for APIs\n- E2E tests for critical paths\n- Performance tests for optimization\n\n## 🚀 Deployment\n\n### Development\n\n```bash\n# Start development environment\ndocker-compose -f server/docker-compose.dev.yml up\n```\n\n### Production\n\n```bash\n# Build and start production environment\ndocker-compose -f server/docker-compose.prod.yml up\n```\n\n### Monitoring\n\n- Prometheus metrics\n- Grafana dashboards\n- Custom logging solution\n- Performance tracking\n\n## 📊 Monitoring \u0026 Metrics\n\n### Key Metrics\n\n- API response times\n- Error rates\n- Resource usage\n- User engagement\n\n### Dashboards\n\n- System overview\n- Service health\n- User activity\n- Performance metrics\n\n## 🔒 Security\n\n### Authentication\n\n- JWT-based authentication\n- Role-based access control\n- Service-to-service auth\n- Secure session management\n\n### Data Protection\n\n- Encryption at rest\n- Secure communication\n- Input validation\n- XSS protection\n\n## 📚 Documentation\n\n### API Documentation\n\n- REST API endpoints\n- gRPC service definitions\n- Data models\n- Authentication flows\n\n### Architecture Documentation\n\n- Service interactions\n- Data flow diagrams\n- Deployment architecture\n- Security measures\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create your feature branch\n3. Commit your changes\n4. Push to the branch\n5. Create a pull request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholedev%2Fvnoi-microservice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholedev%2Fvnoi-microservice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholedev%2Fvnoi-microservice/lists"}