Skip to content

feat: add company namer with domain checks - #134

Open
arnabnandy7 wants to merge 1 commit into
embabel:mainfrom
arnabnandy7:feature/companyNamer
Open

arnabnandy7 wants to merge 1 commit into
embabel:mainfrom
arnabnandy7:feature/companyNamer

Conversation

@arnabnandy7

Copy link
Copy Markdown

Summary

Adds a Java company-naming example that generates company name suggestions and checks their matching .com domains.

Closes #46.

Changes

  • Add an annotation-driven CompanyNamer workflow.
  • Generate structured company names, domains, and rationales.
  • Check domains using the JDK DNS resolver without requiring another API key or consuming a provider quota.
  • Normalize and validate proposed domain names.
  • Cache DNS results during the application lifecycle.
  • Distinguish between:
    • IN_USE when DNS records exist.
    • POTENTIALLY_AVAILABLE when no DNS records are found.
    • UNKNOWN when validation or lookup fails.
  • Document that potentially available domains must still be confirmed with a registrar.
  • Add usage and implementation documentation to the root and Java READMEs.
  • Add focused unit tests with deterministic DNS resolver stubs.

Testing

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
BUILD SUCCESS

Command:

./mvnw -pl examples-java -am \
  -Dtest=CompanyNamerTest,DomainAvailabilityServiceTest \
  -Dsurefire.failIfNoSpecifiedTests=false \
  test

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
@arnabnandy7

Copy link
Copy Markdown
Author

@johnsonr @igordayen although it's a very old issue, still raising this. If needed please review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Company namer with domain name checking

1 participant