Download and install Neptune from GitHUb (Development branch):
[login to view URL]
See documentation here:
[login to view URL]
Create a "Domains" program:
-Should be in a folder called "domains"
-Should have a "model" folder with a "[login to view URL]" that extends "[login to view URL]"
-Should have a "tests" folder "[login to view URL]"
(I recently wrote a blog entry creating TestDomains.cfc. If you can find it then you are welcome to use that code in your submission).
-Should have a method called "convertURL" that takes a single, required string argument named "URL" and returns a string
-Should test and implement the following business rule:
"Any saved DomainName should consist of just the domain name and not any protocol or folder information"
-Should test and implement the following business rule:
"Any URL passed to convertURL should be converted to a relative URL (starting with "/") if it contains a domain name in the domains table."
The code should check for domain names with and without "www."
-Should use the following XML:
<tables prefix="main">
<table entity="Domain" />
</tables>
I expect the final folder structure to look like this:
-domains
[login to view URL]
[login to view URL]
[login to view URL]
--model
[login to view URL]
--tests
[login to view URL]