{"id":19541437,"url":"https://github.com/genesisblock3301/django_grapql","last_synced_at":"2026-06-11T18:31:20.375Z","repository":{"id":238262993,"uuid":"796205652","full_name":"GenesisBlock3301/django_grapql","owner":"GenesisBlock3301","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-11T03:24:02.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T05:18:42.862Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GenesisBlock3301.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}},"created_at":"2024-05-05T08:59:48.000Z","updated_at":"2024-07-11T03:24:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdb92828-39bb-4218-9d74-bc5ab52c93b5","html_url":"https://github.com/GenesisBlock3301/django_grapql","commit_stats":null,"previous_names":["genesisblock3301/django_grapql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GenesisBlock3301/django_grapql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Fdjango_grapql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Fdjango_grapql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Fdjango_grapql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Fdjango_grapql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GenesisBlock3301","download_url":"https://codeload.github.com/GenesisBlock3301/django_grapql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GenesisBlock3301%2Fdjango_grapql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34213180,"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-11T02:00:06.485Z","response_time":57,"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":"2024-11-11T03:10:29.375Z","updated_at":"2026-06-11T18:31:20.354Z","avatar_url":"https://github.com/GenesisBlock3301.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Installing process\n\n**1. Prerequisites:**\n\n- Ensure you have Python (version 3.6 or later) installed on your system. You can verify this by running `python3 --version` or `python --version` in your terminal.\n- If you don't have Python, download and install it from the official website: [https://www.python.org/downloads/](https://www.python.org/downloads/).\n\n**2. Create a Virtual Environment (Recommended):**\n\n- Using a virtual environment helps isolate project dependencies and avoid conflicts with other Python installations.\n- Create a virtual environment using `venv` (Python 3.3+) or `virtualenv` (older versions):\n\n  ```bash\n  python3 -m venv my_venv  # Using venv\n  # OR\n  virtualenv my_venv\n  ```\n\n- Activate the virtual environment:\n\n  ```bash\n  source my_venv/bin/activate  # Linux/macOS\n  # OR\n  my_venv\\Scripts\\activate.bat  # Windows\n  ```\n\n**3. Install Django and Graphene-Django:**\n\n- Activate your virtual environment (if you created one).\n- Install Django and Graphene-Django using `pip`:\n\n  ```bash\n  pip install django graphene-django\n  ```\n\n**4. Create a Django Project:**\n\n- Navigate to your desired project directory.\n- Use `django-admin startproject` to create a new Django project:\n\n  ```bash\n  django-admin startproject django_graphql  # Replace with your project name\n  ```\n\n**5. Create a Django App:**\n\n- Inside your project directory (e.g., `django_graphql`), create a new app for your CRUD functionality:\n\n  ```bash\n  cd my_crud_app\n  django-admin startapp crud_app\n  ```\n\n**6. Add the App to `INSTALLED_APPS`:**\n\n- Open your project's `settings.py` file (usually in `my_app/`) with a text editor.\n- Find the `INSTALLED_APPS` list and add your newly created app:\n\n  ```python\n  INSTALLED_APPS = [\n      # ... other installed apps\n      'app_app',\n  ]\n  ```\n\n**7. (Optional) Install GraphiQL (for testing GraphQL queries):**\n\n- If you want to use GraphiQL to test your GraphQL API, install it using `pip`:\n\n  ```bash\n  pip install django-graphiql\n  ```\n\n\n**9. (Optional) Database Configuration:**\n\n- Django needs a database to store data. Configure your database settings (e.g., `DATABASES`) in your project's `settings.py` according to your chosen database backend (e.g., PostgreSQL, MySQL). Refer to the Django documentation for specific instructions: [https://docs.djangoproject.com/en/5.0/](https://docs.djangoproject.com/en/5.0/)\n- I used here `.sqlite`\n\n**10. Running the Development Server:**\n\n- With your project set up, you can run the development server to test your app:\n\n  ```bash\n  python manage.py runserver\n  ```\n\nThis should start the Django development server, typically accessible at `http://127.0.0.1:8000/` in your web browser. You'll have a basic Django installation ready to begin building your GraphQL CRUD app.\n\nRemember to create your models, serializers (optional), queries, mutations, and schema to implement the CRUD functionality.\n\nFor further configuration and usage details, refer to the Django and Graphene-Django documentation:\n\n- Django: [https://docs.djangoproject.com/en/5.0/](https://docs.djangoproject.com/en/5.0/)\n- Graphene-Django: [https://graphene-django-murali.readthedocs.io/en/latest/rest-framework.html](https://graphene-django-murali.readthedocs.io/en/latest/rest-framework.html)\n\n### Some basic example of query:\nCreate Author \u0026 Book:\ninput:\n```\nmutation {\n  createAuthor(name: \"Mr. Nas\") {\n    author {\n      id\n      name\n    }\n  },\n  createBook(name:\"Journey to the center of the earth\", authorIds: 1){\n    book{\n      id,\n      name\n      authors{\n        id\n        name\n      }\n    }\n  }\n}\n```\n\nResponse:\n```\n{\n  \"data\": {\n    \"createAuthor\": {\n      \"author\": {\n        \"id\": \"3\",\n        \"name\": \"Mr. Nas\"\n      }\n    },\n    \"createBook\": {\n      \"book\": {\n        \"id\": \"2\",\n        \"name\": \"Journey to the center of the earth\",\n        \"authors\": [\n          {\n            \"id\": \"1\",\n            \"name\": \"Mr. Nas\"\n          }\n        ]\n      }\n    }\n  }\n}\n```\n\nGet All author \u0026 books:\n```\nquery{\n  authors{\n    id\n    name\n  },\n  books{\n    name\n    authors{\n      id\n      name\n    }\n  }\n}\n```\n\nResponse:\n```\n{\n  \"data\": {\n    \"authors\": [\n      {\n        \"id\": \"1\",\n        \"name\": \"Mr. Nas\"\n      },\n      {\n        \"id\": \"2\",\n        \"name\": \"Mr. Nas\"\n      }\n    ],\n    \"books\": [\n      {\n        \"name\": \"Journey to the center of the earth\",\n        \"authors\": [\n          {\n            \"id\": \"1\",\n            \"name\": \"Mr. Nas\"\n          }\n        ]\n      }\n    ]\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Fdjango_grapql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenesisblock3301%2Fdjango_grapql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenesisblock3301%2Fdjango_grapql/lists"}