{"id":15784905,"url":"https://github.com/jzwood/scrabble-oracle-api","last_synced_at":"2026-04-28T11:31:59.961Z","repository":{"id":85594770,"uuid":"303007646","full_name":"jzwood/scrabble-oracle-api","owner":"jzwood","description":"API for Scrabble Oracle app (Server)","archived":false,"fork":false,"pushed_at":"2020-12-23T14:41:15.000Z","size":772,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-06T08:39:53.750Z","etag":null,"topics":["ai","bot","docker","haskell","scrabble"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jzwood.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-10T23:31:35.000Z","updated_at":"2022-01-03T20:42:16.000Z","dependencies_parsed_at":"2023-04-03T23:46:36.465Z","dependency_job_id":null,"html_url":"https://github.com/jzwood/scrabble-oracle-api","commit_stats":{"total_commits":28,"total_committers":1,"mean_commits":28.0,"dds":0.0,"last_synced_commit":"dfdf74504f867f155cfe8a9870b8fd303c5654c6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jzwood/scrabble-oracle-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fscrabble-oracle-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fscrabble-oracle-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fscrabble-oracle-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fscrabble-oracle-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jzwood","download_url":"https://codeload.github.com/jzwood/scrabble-oracle-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jzwood%2Fscrabble-oracle-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","bot","docker","haskell","scrabble"],"created_at":"2024-10-04T20:06:27.807Z","updated_at":"2026-04-28T11:31:59.923Z","avatar_url":"https://github.com/jzwood.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrabble-Scotty Web App\n\nAPI wrapper for [Scrabble AI](https://github.com/jzwood/ScrabbleOracle).\n\n\n# local\n\n```haskell\nstack install\nscrabble-scotty-app-exe\n```\n\nhit api via CURL or Postman:\n```haskell\nlocalhost:3000/ask-the-scrabble-oracle\nbody:\n  - board:\n    * 225 characters of scrabble board (left to right and top to bottom)\n    * uppercase\n    * empty space = '_'\n  - rack\n    * 7 characters of rack\n    * uppercase\n  - rcpt:\n    * recipient email address\n```\n\n# run locally\n### outside docker\n```\nset -a\nsource app.env \u0026\u0026 source db.env\nset +a\nstack install\nscrabble-scotty-app-exe\n```\n\n### with docker\n\n### with docker-compose\n# deploy\n\n## Docker\n### Build\n`docker build -t \"scrabble-scotty-app:Dockerfile\" .`\nor better\n`docker build -t jzwood/scrabble-oracle-api:v0.0.0 .`\n\n### Run\nset the following environment variables\n```\nexport MAIL_FROM=\nexport MAIL_APP_KEY=\nexport PRODUCTION=\n```\n\n`docker run -p 5000:3000 -it \u003ctag\u003e /bin/bash`\n```\ndocker run -p 5000:3000 -e PORT=3000 \\\n  -e MAIL_FROM= \\\n  -e MAIL_APP_KEY= \\\n  -e PRODUCTION=TRUE \\\n  -it \u003ctag\u003e\n```\nor\n`docker run -p 5000:3000 --env-file secrets -it \u003ctag\u003e`\n\nyou can now hit the api at `localhost:5000/board/\u003cboard\u003e/rack/\u003crack\u003e`\n\n\n## Deploy to Heroku\neither make a new app called \"scrabble-oracle-api\" in heroku web UI or via CLI: `$ heroku create -a scrabble-oracle-api`, then,\n```\n$ heroku container:login\n$ heroku container:push web -a scrabble-oracle-api\n$ heroku container:release web -a scrabble-oracle-api\n```\n\nMake sure to set the env variables defined in the `secrets` file.\n\ncheck the logs:\n```\n$ heroku logs --app scrabble-oracle-api\n```\n\n**Postgres**\n```\nheroku pg:psql postgresql-flexible-80984 --app scrabble-oracle-api\n```\n\n\n## Publishing to docker hub (not required for deployment)\n### update tag for remote repo\n`docker tag scrabble-scotty-app:Dockerfile jzwood/scrabble-oracle-api:v0.0.0`\n\n### publish\n`docker push jzwood/scrabble-oracle-api:v0.0.0`\n\n\n### PostgreSQL\n```\ndocker-compose exec postgres bash\npsql -U oracle scrabble-oracle-db\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzwood%2Fscrabble-oracle-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjzwood%2Fscrabble-oracle-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjzwood%2Fscrabble-oracle-api/lists"}