Open jalexray opened 4 days ago
JACoB here...
You mentioned me on this issue and I am busy taking a look at it.
I'll continue to comment on this issue with status as I make progress.
Unfortunately, I ran into trouble working on this.
Here is some error information:
ENOENT: no such file or directory, stat '/mnt/tmp/tmp-110-ZVIfNu7sfnbt/jacob-env/bin/python'
Summary
Enhance the Flask application by adding a feature that allows users to check the availability of domain names for purchase using the GoDaddy API.
Description
We aim to provide users with the ability to check domain name availability directly from our application. This feature will involve creating a new HTML template for user input, adding a corresponding Flask route to handle form submissions, integrating with the GoDaddy API, and securely managing API credentials.
1. Create a New HTML Template for User Input
domain_check.html
to the application's templates directory.POST
method and is set up to submit to the designated route.2. Add a New Flask Route to Handle Form Submissions
/app/main/routes.py
to include a new route for domain availability checks.GET
andPOST
requests at the endpoint/domain-check
.GET
request: Render thedomain_check.html
template to display the input form.POST
request:3. Integrate with the GoDaddy API
/utilities/utilities.py
, create a function namedcheck_domain_availability(domain_name)
.4. Securely Manage GoDaddy API Credentials
GODADDY_API_KEY
andGODADDY_API_SECRET
./config.py
, load the API credentials from the environment variables.5. Update Documentation
Expected Outcome
/domain-check
, enter a domain name, and submit the form.README.md
file is updated with information about the new feature and setup instructions.Additional Notes