{"id":21485109,"url":"https://github.com/drew138/tictac","last_synced_at":"2025-07-03T16:33:33.203Z","repository":{"id":55645689,"uuid":"300483612","full_name":"drew138/tictac","owner":"drew138","description":"API for tic tac toe website","archived":false,"fork":false,"pushed_at":"2020-12-16T02:16:29.000Z","size":79,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T09:49:47.294Z","etag":null,"topics":["backend","golang","rest-api","websocket"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drew138.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-02T02:46:30.000Z","updated_at":"2021-09-20T02:44:24.000Z","dependencies_parsed_at":"2022-08-15T05:20:57.885Z","dependency_job_id":null,"html_url":"https://github.com/drew138/tictac","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drew138/tictac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Ftictac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Ftictac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Ftictac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Ftictac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drew138","download_url":"https://codeload.github.com/drew138/tictac/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drew138%2Ftictac/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259971378,"owners_count":22940012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["backend","golang","rest-api","websocket"],"created_at":"2024-11-23T13:14:06.655Z","updated_at":"2025-06-15T12:07:24.422Z","avatar_url":"https://github.com/drew138.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TICTAC Website API\n\n## Installation\n\nrun `go get drew138/tictac` on your local machine.\n\n## Environment Variables\n\nThis project implements environment variables to handle sensitive information and various encryption and hashing algorithms.\n\n### Recommended .env file\n\nAlthough the use of a .env file is not enforced, the following environment variables structure is required:\n\n```\nDB_USERNAME=yourDatabaseUsername\nDB_PASSWORD=yourDatabasePassword\nDB_NAME=yourDatabaseName\nDB_HOST=yourDatabaseHost\nDB_PORT=yourDatabasePort\nJWT_SECRET_KEY=randomJWTSecretKey\nJWT_REFRESH_SECRET_KEY=anotherRandomJWTSecretKey\n```\n\n## Websocket\n\nThe implemented websocket supports the following messages\n\n### Sending Private Message\n\nSending message:\n```\n{\n  \"action\": \"privateMessage\",\n  \"recipientID\": \"oihdfq89ewdfhsdfu80qu8943\",\n  \"body\": \"Hi, how are you?\"\n}\n```\n\nReceived message:\n```\n{\n  \"action\": \"privateMessage\",\n  \"recipientID\": \"a0sg8enfdls0d72hfla0adimg\",\n  \"body\": \"Hi, how are you?\"\n}\n```\n\n### Sending Game Actions\n\nSending message:\n```\n{\n  \"action\": \"gameAction\",\n  \"recipientID\": \"oihdfq89ewdfhsdfu80qu8943\",\n  \"body\": \"Hi, how are you?\"\n}\n```\n\nReceived message:\n```\n{\n  \"action\": \"gameAction\",\n  \"recipientID\": \"a0sg8enfdls0d72hfla0adimg\",\n  \"body\": \"Hi, how are you?\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew138%2Ftictac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrew138%2Ftictac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrew138%2Ftictac/lists"}