{"id":35745397,"url":"https://github.com/civicdatalab/dataspacebackend","last_synced_at":"2026-06-17T20:01:22.695Z","repository":{"id":317817302,"uuid":"758481446","full_name":"CivicDataLab/DataSpaceBackend","owner":"CivicDataLab","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-12T18:47:29.000Z","size":1505,"stargazers_count":2,"open_issues_count":28,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-12T20:21:52.029Z","etag":null,"topics":["data-collaboration","data-engineering","data-platform","data-visualization","hacktoberfest","hacktoberfest2025"],"latest_commit_sha":null,"homepage":"https://civicdataspace.in","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CivicDataLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","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-02-16T12:19:16.000Z","updated_at":"2026-06-09T09:17:12.000Z","dependencies_parsed_at":"2025-10-03T09:20:25.367Z","dependency_job_id":null,"html_url":"https://github.com/CivicDataLab/DataSpaceBackend","commit_stats":null,"previous_names":["civicdatalab/dataspacebackend"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/CivicDataLab/DataSpaceBackend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CivicDataLab%2FDataSpaceBackend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CivicDataLab%2FDataSpaceBackend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CivicDataLab%2FDataSpaceBackend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CivicDataLab%2FDataSpaceBackend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CivicDataLab","download_url":"https://codeload.github.com/CivicDataLab/DataSpaceBackend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CivicDataLab%2FDataSpaceBackend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34463558,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["data-collaboration","data-engineering","data-platform","data-visualization","hacktoberfest","hacktoberfest2025"],"created_at":"2026-01-06T17:25:54.588Z","updated_at":"2026-06-17T20:01:22.675Z","avatar_url":"https://github.com/CivicDataLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataSpace Backend\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)\n[![Django](https://img.shields.io/badge/django-5.0+-green.svg)](https://djangoproject.com/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![Issues](https://img.shields.io/github/issues/CivicDataLab/DataSpaceBackend)](https://github.com/CivicDataLab/DataSpaceBackend/issues)\n[![Contributors](https://img.shields.io/github/contributors/CivicDataLab/DataSpaceBackend)](https://github.com/CivicDataLab/DataSpaceBackend/graphs/contributors)\n\n## Overview\n\nDataSpace is a platform for sharing and managing datasets. This repository contains the backend code for the DataSpace platform, built with Django and GraphQL.\n\n## Key Features\n\n- **Secure Authentication**: Integration with Keycloak for robust authentication\n- **Role-Based Access Control**: Fine-grained permissions based on user roles\n- **GraphQL API**: Modern API with efficient data fetching\n- **REST API**: Traditional REST endpoints for specific operations\n- **Data Management**: Tools for dataset management and organization\n\n## Authentication System\n\nThe backend uses Keycloak for authentication, providing a secure and scalable solution. Key aspects of the authentication system include:\n\n- **Token-Based Authentication**: All requests require a valid Keycloak JWT token\n- **Direct Validation**: Tokens are validated directly with Keycloak\n- **User Synchronization**: User data is synchronized from Keycloak to the Django database\n- **No Development Mode**: The system only works with real Keycloak tokens, with no fallback mechanisms\n\nFor detailed information about the Keycloak integration, see the [Keycloak Integration Documentation](docs/keycloak_integration.md).\n\n## Getting Started\n\n### Prerequisites\n\n- Python 3.8+\n- PostgreSQL\n- Keycloak server\n\n### Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/CivicDataLab/DataSpaceBackend.git\n   cd DataSpaceBackend\n   ```\n\n2. Create a virtual environment and install dependencies:\n   ```bash\n   python -m venv venv\n   source venv/bin/activate  # On Windows: venv\\Scripts\\activate\n   pip install -r requirements.txt\n   ```\n\n3. Set up environment variables (create a `.env` file in the project root):\n   ```\n   DEBUG=True\n   SECRET_KEY=your-secret-key\n   DB_ENGINE=django.db.backends.postgresql\n   DB_NAME=dataspace\n   DB_USER=postgres\n   DB_PASSWORD=postgres\n   DB_HOST=localhost\n   DB_PORT=5432\n   KEYCLOAK_SERVER_URL=https://your-keycloak-server/auth\n   KEYCLOAK_REALM=your-realm\n   KEYCLOAK_CLIENT_ID=your-client-id\n   KEYCLOAK_CLIENT_SECRET=your-client-secret\n   ```\n\n4. Run migrations:\n   ```bash\n   python manage.py migrate\n   ```\n\n5. Initialize roles:\n   ```bash\n   python manage.py init_roles\n   ```\n\n6. Start the development server:\n   ```bash\n   python manage.py runserver\n   ```\n\n## API Documentation\n\nAPI documentation is available at the following endpoints when the server is running:\n\n- Swagger UI: `/swagger/`\n- ReDoc: `/redoc/`\n- GraphQL Playground: `/graphql/`\n\n## Directory Structure\n\n- `api/`: Main API application with models, views, and GraphQL schema\n- `authorization/`: Authentication and authorization components\n- `DataSpace/`: Project settings and configuration\n- `docs/`: Documentation files\n- `search/`: Search functionality and Elasticsearch integration\n\n## Contributing\n\n1. Create a feature branch from the `main` branch\n2. Make your changes\n3. Submit a pull request\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivicdatalab%2Fdataspacebackend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcivicdatalab%2Fdataspacebackend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcivicdatalab%2Fdataspacebackend/lists"}