No description
Find a file
Ray Miller 0ecc755b66 Update standalone server
* Use embedded data sources
* Optionally listen on a Unix domain socket
* Server htmx and CSS from remote CDNs.
2024-05-04 14:01:35 +01:00
anagram Rework to embed binary data instead of reading wordlist from storage on start-up 2023-10-09 09:09:28 +01:00
cmd Rework to embed binary data instead of reading wordlist from storage on start-up 2023-10-09 09:09:28 +01:00
data Rework to embed binary data instead of reading wordlist from storage on start-up 2023-10-09 09:09:28 +01:00
match Rework to embed binary data instead of reading wordlist from storage on start-up 2023-10-09 09:09:28 +01:00
standalone Update standalone server 2024-05-04 14:01:35 +01:00
util Initial check-in 2023-10-07 17:12:47 +01:00
.git-semver Add semver config 2023-10-08 14:27:24 +01:00
.gitignore Configure CORS 2023-10-08 16:39:55 +01:00
cloudfn.go Remove Cambridge dictionary link, make link text smaller. 2024-04-20 16:04:32 +01:00
deploy.sh Rework to embed binary data instead of reading wordlist from storage on start-up 2023-10-09 09:09:28 +01:00
go.mod Bump dependencies 2024-04-20 14:45:37 +01:00
go.sum Update standalone server 2024-05-04 14:01:35 +01:00
README.md Refactor to move cloud fn to top level 2023-10-08 15:05:12 +01:00
wordlist.txt Update standalone server 2024-05-04 14:01:35 +01:00

Puzzle Solver

Match patterns and solve anagrams - handy for crossword fanatics.

Standalone Server

cd standalone
go run main.go

Cloud Function

To test using the Cloud Functions Framework:

env FUNCTION_TARGET=WordSearch WORDLIST_BUCKET=word-search-1729-assets \
  WORDLIST_PATH=data/wordlist.txt LOCAL_ONLY=true go run ./cmd/fn-framework-test/main.go

curl 'http://localhost:8080?mode=anagrams&pattern=idea'