{"id":24722083,"url":"https://github.com/solvro/backend-testownik","last_synced_at":"2025-10-09T18:30:48.657Z","repository":{"id":259902409,"uuid":"849810049","full_name":"Solvro/backend-testownik","owner":"Solvro","description":"Testownik Solvro - Backend","archived":false,"fork":false,"pushed_at":"2025-09-24T17:00:19.000Z","size":547,"stargazers_count":7,"open_issues_count":3,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-24T18:25:52.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://api.testownik.solvro.pl","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/Solvro.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":"2024-08-30T09:42:09.000Z","updated_at":"2025-09-24T16:59:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"7be3a65f-1c74-44d3-b7ac-5a5c1b4a4368","html_url":"https://github.com/Solvro/backend-testownik","commit_stats":null,"previous_names":["antoni-czaplicki/testownik_core","testownik-pwr/testownik_core","solvro/backend-testownik"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Solvro/backend-testownik","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Fbackend-testownik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Fbackend-testownik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Fbackend-testownik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Fbackend-testownik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Solvro","download_url":"https://codeload.github.com/Solvro/backend-testownik/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Solvro%2Fbackend-testownik/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279001947,"owners_count":26083226,"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-09T02:00:07.460Z","response_time":59,"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":[],"created_at":"2025-01-27T12:16:22.409Z","updated_at":"2025-10-09T18:30:48.651Z","avatar_url":"https://github.com/Solvro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testownik Core\n\nA Django-based backend application for managing quizzes, grades, and user feedback in an educational context. The project integrates with USOS API for user authentication and provides a RESTful API interface.\n\n## Features\n\n- User authentication via USOS API\n- Quiz management system\n- Grade tracking and management\n- Alert system for notifications\n- Feedback collection and management\n- RESTful API with JWT authentication\n- API documentation using DRF Spectacular\n- CORS support for frontend integration\n\n## Tech Stack\n\n- Python 3.x\n- Django 5.1.6\n- Django REST Framework 3.15.2\n- PostgreSQL (production) / SQLite (development)\n- JWT Authentication\n- USOS API Integration\n- Gunicorn (production server)\n- WhiteNoise (static files)\n\n## Prerequisites\n\n- Python 3.x\n- pip (Python package manager)\n- PostgreSQL (for production)\n- USOS API credentials\n\n## Installation\n\n1. Clone the repository:\n```bash\ngit clone \u003crepository-url\u003e\ncd testownik_core\n```\n\n2. Create and activate 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. Create a `.env` file in the project root with the following variables:\n```env\nSECRET_KEY=your-secret-key\nDEBUG=True\nALLOWED_HOSTS=localhost,127.0.0.1\nCORS_ALLOWED_ORIGINS=http://localhost:5173\nCSRF_TRUSTED_ORIGINS=http://localhost:8000\n\n# Database settings (for production)\nDB_ENGINE=django.db.backends.postgresql\nDB_NAME=your_db_name\nDB_USER=your_db_user\nDB_PASSWORD=your_db_password\nDB_HOST=localhost\nDB_PORT=5432\n\n# Email settings\nEMAIL_HOST=your-smtp-server\nEMAIL_USE_TLS=True\nEMAIL_PORT=587\nEMAIL_HOST_USER=your-email\nEMAIL_HOST_PASSWORD=your-password\nDEFAULT_FROM_EMAIL=Testownik Solvro \u003ctestownik@solvro.pl\u003e\n```\n\n5. Run migrations:\n```bash\npython manage.py migrate\n```\n\n6. Create a superuser (optional):\n```bash\npython manage.py createsuperuser\n```\n\n7. Run the development server:\n```bash\npython manage.py runserver\n```\n\n## Project Structure\n\n- `alerts/` - Alert system for notifications\n- `feedback/` - Feedback collection and management\n- `grades/` - Grade tracking and management\n- `quizzes/` - Quiz management system\n- `users/` - User management and authentication\n- `templates/` - HTML templates\n- `testownik_core/` - Main project configuration\n\n## API Documentation\n\nThe API documentation is available at `/api/schema/swagger-ui/` when running the server. It provides detailed information about all available endpoints, request/response formats, and authentication requirements.\n\n## Development\n\n- The project uses Django REST Framework for API development\n- JWT authentication is implemented for secure API access\n- CORS is configured to allow frontend integration\n- Rate limiting is implemented for API protection\n\n## Production Deployment\n\nFor production deployment:\n\n1. Set `DEBUG=False` in your environment variables\n2. Configure a proper database (PostgreSQL recommended)\n3. Set up proper email settings\n4. Configure proper CORS and CSRF settings\n5. Use Gunicorn as the production server:\n```bash\ngunicorn testownik_core.wsgi:application\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolvro%2Fbackend-testownik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolvro%2Fbackend-testownik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolvro%2Fbackend-testownik/lists"}