A simple React component that checks the availability of a domain name and displays the price if available. It also has a button for domain name registration
- Checks the availability of a domain name.
- Displays the price of the domain name if available.
- Allows the user to register the domain name if it's available.
- Clone the repository:
git clone https://github.com/rabinsxp/domain-name-checker.git
- Install dependencies:
cd domain-name-checker
npm install
- Create a
.env.local
file and add your HostMario API key:
NEXT_PUBLIC_HOSTMARIO_API_KEY=your-api-key-here
Make sure you need to signup for free HostMario Domain registration API to get the API credentials.
- Start the development server:
npm run dev
-
Open your browser and navigate to http://localhost:3000.
-
Enter a domain name and click "Check Availability".
The DomainChecker
component accepts the following props:
Prop | Type | Default | Description |
---|---|---|---|
buttonText |
string |
"Check" |
The text to display on the "Check Availability" button |
This project is licensed under the MIT license.