Find anagrams of words based upon the unix dictionary found at anagramsolver/dictionary.txt
.
See /cloudfunction
, with the static page is hosted
on GitHub pages in /docs
.
To deploy on GCP:
cd cloudfunction
gcloud functions deploy HelloYou --runtime go111 --trigger-http --memory=2048 --region=europe-west1
Compute anagrams: https://europe-west1-anagram-solver-you.cloudfunctions.net/HelloYou?q=aardvark
go run main.go
View at http://localhost:80
Copy .env.dist
to .env
with working vars then run:
make deploy
Running as a systemd service.
sudo service goanagram start
To view logs:
journalctl -u goanagram.service
cd anagramsolver
go test -v