{"id":31906423,"url":"https://github.com/mahmoodhamdi/sounds_api","last_synced_at":"2025-10-13T14:45:51.112Z","repository":{"id":305976191,"uuid":"1023300630","full_name":"mahmoodhamdi/sounds_api","owner":"mahmoodhamdi","description":"A comprehensive Flask-based backend API for an educational platform supporting multi-language learning, video content management, exam systems, and progress tracking with Arabic/English localization.","archived":false,"fork":false,"pushed_at":"2025-10-04T11:31:32.000Z","size":430,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-04T13:22:09.612Z","etag":null,"topics":["arabic-english","backend-api","bcrypt","educational-platform","exam-system","excel-export","flask","flask-jwt-extended","language-learning","localization","multilingual","progress-tracking","pyinstaller","python","rest-api","sqlalchemy","sqlite3","video-management"],"latest_commit_sha":null,"homepage":"https://github.com/mahmoodhamdi/sounds_api","language":"Python","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/mahmoodhamdi.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-07-21T00:21:28.000Z","updated_at":"2025-10-04T11:31:35.000Z","dependencies_parsed_at":"2025-10-04T13:13:25.001Z","dependency_job_id":"d769abba-0631-4ba2-b789-f03700306e6a","html_url":"https://github.com/mahmoodhamdi/sounds_api","commit_stats":null,"previous_names":["mahmoodhamdi/sounds_api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mahmoodhamdi/sounds_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoodhamdi%2Fsounds_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoodhamdi%2Fsounds_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoodhamdi%2Fsounds_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoodhamdi%2Fsounds_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahmoodhamdi","download_url":"https://codeload.github.com/mahmoodhamdi/sounds_api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoodhamdi%2Fsounds_api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015770,"owners_count":26085749,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["arabic-english","backend-api","bcrypt","educational-platform","exam-system","excel-export","flask","flask-jwt-extended","language-learning","localization","multilingual","progress-tracking","pyinstaller","python","rest-api","sqlalchemy","sqlite3","video-management"],"created_at":"2025-10-13T14:45:48.846Z","updated_at":"2025-10-13T14:45:51.103Z","avatar_url":"https://github.com/mahmoodhamdi.png","language":"Python","readme":"# Sounds API - Backend System\n\n## 📖 Overview\n\nSounds API is a comprehensive backend system built with Flask that powers an educational platform focused on language learning and pronunciation improvement. The system supports multi-role users (admins and clients), level-based content management, video lessons, exam systems, and detailed progress tracking.\n\n## ✨ Features\n\n- **Multi-language Support**: Full Arabic and English localization\n- **User Management**: Registration, authentication, and role-based access control\n- **Level System**: Structured learning levels with videos and exams\n- **Video Management**: YouTube integration with progress tracking\n- **Question System**: Interactive questions with answer validation\n- **Exam System**: Initial and final exams with score tracking\n- **Progress Reporting**: Detailed user progress reports in multiple formats\n- **Admin Dashboard**: Comprehensive administration tools\n- **File Upload**: Secure image upload for level covers\n\n## 🛠 Technology Stack\n\n- **Backend Framework**: Flask\n- **Database**: SQLAlchemy ORM with SQLite/PostgreSQL support\n- **Authentication**: JWT tokens with Flask-JWT-Extended\n- **Security**: Bcrypt for password hashing\n- **Localization**: Custom multi-language support (English/Arabic)\n- **File Handling**: Secure file uploads with UUID renaming\n- **Validation**: Comprehensive input validation system\n\n## 📦 Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/mahmoodhamdi/sounds_api.git\ncd sounds_api\n```\n\n2. Create a virtual environment:\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n\n3. Install dependencies:\n```bash\npip install -r requirements.txt\n```\n\n4. Configure environment variables:\n```bash\nexport SECRET_KEY='your-secret-key'\nexport JWT_SECRET_KEY='your-jwt-secret'\nexport DATABASE_URL='sqlite:///site.db'  # or your PostgreSQL URL\n```\n\n5. Initialize the database:\n```bash\npython app.py\n```\n\n## 🚀 Usage\n\nStart the development server:\n```bash\npython app.py\n```\n\nThe API will be available at `http://localhost:5000`\n\n## 📚 API Documentation\n\n### Authentication Endpoints\n- `POST /register` - User registration\n- `POST /login` - User login (supports Google login)\n\n### User Management\n- `GET /users/\u003cid\u003e` - Get user profile\n- `PATCH /users/\u003cid\u003e` - Update user information\n- `GET /admin/users` - Get all users (admin only)\n- `DELETE /admin/users/\u003cid\u003e` - Delete user (admin only)\n\n### Level Management\n- `GET /levels` - Get all available levels\n- `POST /levels` - Create new level (admin only)\n- `PUT /levels/\u003cid\u003e` - Update level (admin only)\n- `DELETE /levels/\u003cid\u003e` - Delete level (admin only)\n\n### Video \u0026 Question System\n- `POST /levels/\u003cid\u003e/videos` - Add video to level\n- `POST /videos/\u003cid\u003e/questions` - Add question to video\n- `POST /questions/\u003cid\u003e/submit` - Submit question answer\n\n### Exam System\n- `POST /exams/\u003clevel_id\u003e/initial` - Submit initial exam\n- `POST /exams/\u003clevel_id\u003e/final` - Submit final exam\n\n### Progress Tracking\n- `GET /report` - Get user progress report (markdown/JSON)\n- `GET /users/\u003cid\u003e/levels` - Get user's purchased levels\n\n## 🔐 Authentication\n\nThe API uses JWT tokens for authentication. Include the token in the Authorization header:\n```\nAuthorization: Bearer \u003cyour_token\u003e\n```\n\n## 🌐 Localization\n\nThe API supports English (en) and Arabic (ar) languages. Specify language using:\n- Query parameter: `?lang=ar`\n- Form data: `lang=ar`\n- Header: `Accept-Language: ar`\n\n## 📊 Database Schema\n\nKey models include:\n- **User**: User accounts with roles\n- **Level**: Learning levels with pricing\n- **Video**: YouTube videos with questions\n- **Question**: Interactive questions\n- **UserLevel**: User progress per level\n- **ExamResult**: Exam scores and results\n\n## 🤝 Contributing\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature-name`\n3. Commit changes: `git commit -m 'Add feature'`\n4. Push to branch: `git push origin feature-name`\n5. Submit a pull request\n\n## 📄 License\n\nThis project is proprietary and confidential. All rights reserved.\n\n## 👨‍💻 Developer\n\n**Mahmood Hamdi**\n- Email: hmdy7486@gmail.com\n- WhatsApp: +201019793768\n- GitHub: [mahmoodhamdi](https://github.com/mahmoodhamdi/)\n\n## 🆘 Support\n\nFor technical support or questions, please contact the developer directly via email or WhatsApp.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoodhamdi%2Fsounds_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmoodhamdi%2Fsounds_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoodhamdi%2Fsounds_api/lists"}