{"id":25171666,"url":"https://github.com/basemax/domainregisterationgraphqlts","last_synced_at":"2026-04-09T16:12:32.157Z","repository":{"id":180993111,"uuid":"664715513","full_name":"BaseMax/DomainRegisterationGraphQLTS","owner":"BaseMax","description":"DomainRegistrationGraphQLTS is a TypeScript-based project that implements a GraphQL API for managing domain registration. It provides a set of queries and mutations to perform various operations related to domain registration, including creating new domains, retrieving domain information, updating domain details, and deleting domains.","archived":false,"fork":false,"pushed_at":"2024-06-18T11:09:36.000Z","size":869,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T14:45:02.295Z","etag":null,"topics":["graphql","graphql-ts","graphql-typescript","javascript","javascript-graphql","js","js-graphql","ts","ts-gl","ts-graphql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/BaseMax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-10T15:27:50.000Z","updated_at":"2023-07-13T14:09:48.000Z","dependencies_parsed_at":"2023-07-14T00:01:19.270Z","dependency_job_id":"ec5f459b-436f-4e7f-8909-1e9d9ef66afb","html_url":"https://github.com/BaseMax/DomainRegisterationGraphQLTS","commit_stats":null,"previous_names":["basemax/domainregisterationgraphqlts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BaseMax/DomainRegisterationGraphQLTS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FDomainRegisterationGraphQLTS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FDomainRegisterationGraphQLTS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FDomainRegisterationGraphQLTS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FDomainRegisterationGraphQLTS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/DomainRegisterationGraphQLTS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FDomainRegisterationGraphQLTS/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264697567,"owners_count":23650955,"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":["graphql","graphql-ts","graphql-typescript","javascript","javascript-graphql","js","js-graphql","ts","ts-gl","ts-graphql","typescript"],"created_at":"2025-02-09T09:21:31.710Z","updated_at":"2026-04-09T16:12:32.111Z","avatar_url":"https://github.com/BaseMax.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Domain Registeration GraphQL TS\n\nDomainRegistrationGraphQLTS is a TypeScript-based project that implements a GraphQL API for managing domain registration. It provides a set of queries and mutations to perform various operations related to domain registration, including creating new domains, retrieving domain information, updating domain details, and deleting domains.\n\n## Features\n\n- Create a new domain with registration details.\n- Retrieve domain information by ID or domain name.\n- Update domain details such as registrant information, expiration date, and DNS records.\n- Delete a domain by ID.\n\n## Routes\n\nThe project exposes a single GraphQL endpoint for accessing the domain registration functionality.\n\n**Endpoint:** `/graphql`\n\n## Queries\n\nThe following queries are available for retrieving domain information:\n\n- `domain(id: ID!)`: Domain: Retrieves a domain by its unique ID.\n- `domains: [Domain]`: Retrieves a list of all registered domains.\n- `searchDomains(keyword: String!): [Domain]`: Searches for domains using a keyword.\n- `checkAvailability(domain: String!): Boolean`: Checks the availability of a domain name.\n- `myDomains: [Domain]`: Retrieves a list of domains registered by the authenticated user.\n\n## Mutations\n\nThe following mutations are available for performing domain registration operations:\n\n- `register(name: String!, username: String!, password: String!): User`: Registers a new user with the provided username and password.\n- `login(username: String!, password: String!): Token`: Authenticates a user and returns an access token.\n- `registerDomain(registerDomainInput: DomainInput!): Domain`: Registers a new domain with the provided details.\n- `updateDomain(id: ID!, updateDomainInput: DomainInput!): Domain`: Updates the details of an existing domain.\n- `updateDomainDNS(id: ID!, dns: [String]!): Domain`: Updates the DNS/nameserver of a domain.\n- `deleteDomain(id: ID!): Domain`: Deletes a domain by its ID.\n- `transferDomain(id: ID!, recipientUsername: String!): Domain`: Transfers a domain from the authenticated user's account to another user's account.\n\n## GraphQL Examples\n\n### domain(id: ID!): Domain\n\n```graphql\nquery {\n  domain(id: \"123456\") {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### domains: [Domain]\n\n```graphql\nquery {\n  domains {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### searchDomains(keyword: String!): [Domain]\n\n```graphql\nquery {\n  searchDomains(keyword: \"example\") {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### checkAvailability(domainName: String!): Boolean\n\n```graphql\nquery {\n  checkAvailability(domain: \"example.com\") {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### myDomains: [Domain]\n\n```graphql\nquery {\n  myDomains {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### register(username: String!, password: String!): User\n\n```graphql\nmutation {\n  register(registerInput:‌ {\n    name: \"name\",\n    username: \"example_user\",\n    password: \"password\"\n  }) {\n    access_token\n  }\n}\n```\n\n### login(username: String!, password: String!): Token\n\n```graphql\nmutation {\n  login(loginInput: {\n    username: \"example_user\",\n    password: \"password\"\n  }) {\n    access_token\n  }\n}\n```\n\n### registerDomain(input: DomainInput!): Domain\n\n```graphql\nmutation {\n  registerDomain(registerDomainInput: {\n    name: \"example.com\",\n    userId: 1,\n    expirationDate: \"2024-07-10\",\n    dnsRecords: [\"ns1.example.com\", \"ns2.example.com\"]\n  }) {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### updateDomain(id: ID!, input: DomainInput!): Domain\n\n```graphql\nmutation {\n  updateDomain(id: \"123456\", updateDomainInput: {\n    userId: 1,\n    expirationDate: \"2025-07-10\",\n    dnsRecords: [\"ns1.updated-example.com\", \"ns2.updated-example.com\"]\n  }) {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### updateDomainDNS(id: ID!, dns: [String]!): Domain\n\n```graphql\nmutation {\n  updateDomainDNS(id: \"123456\", dns: [\"ns1.example.com\", \"ns2.example.com\", \"ns3.example.com\"]) {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### deleteDomain(id: ID!): Domain\n\n```graphql\nmutation {\n  deleteDomain(id: \"123456\") {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n### transferDomain(id: ID!, recipientUsername: String!): Domain\n\n```graphql\nmutation {\n  transferDomain(id: \"123456\", recipientUsername: \"new_user\") {\n    id\n    name\n    registrant {\n      name\n      email\n    }\n    expirationDate\n    dnsRecords\n  }\n}\n```\n\n## Data Types\n\nThe project uses the following data types:\n\n- `User`: Represents a user with properties such as ID and username.\n- `Token`: Represents an authentication token.\n- `Domain`: Represents a domain with properties such as ID, name, registrant information, expiration date, and DNS records.\n- `DomainInput`: Input type for creating or updating a domain, including properties such as name, registrant information, expiration date, and DNS records.\n\n## Getting Started\n\nTo run the DomainRegistrationGraphQLTS project locally, follow these steps:\n\n- Clone the repository: `git clone https://github.com/basemax/DomainRegisterationGraphQLTS.git`\n- Navigate to the project directory: `cd DomainRegisterationGraphQLTS`\n- Install the dependencies: `npm install`\n- Build the project: `npm run build`\n- Start the server: `npm start`\n- Once the server is running, you can access the GraphQL API at `http://localhost:4000/graphql`.\n\n## Testing\n\nTo run the tests, use the following command:\n\n```shell\nnpm run test:e2e\n```\n\nThis will execute the test suite and provide the test results.\n\n## Dependencies\n\nThe project relies on the following dependencies:\n\n- `nestjs`: Web framework for Node.js.\n- `graphql`: GraphQL implementation for JavaScript.\n- `graphql-tools`: Tools for building and manipulating GraphQL schemas.\n- `apollo-server-express`: Integration of Apollo Server with Express.\n- `typescript`: TypeScript compiler and language tools.\n\nPlease ensure that these dependencies are installed before running the project.\n\n## License\n\nThis project is licensed under the MIT License. Feel free to use and modify the code as per your requirements.\n\n## Contributions\n\nContributions to the DomainRegistrationGraphQLTS project are welcome. If you find any issues or have suggestions for improvement,\n\nCopyright 2023, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fdomainregisterationgraphqlts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fdomainregisterationgraphqlts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fdomainregisterationgraphqlts/lists"}