{"id":19513858,"url":"https://github.com/syssos/chatterboxgoactexample-v0.2.2","last_synced_at":"2025-08-19T13:18:46.347Z","repository":{"id":45486217,"uuid":"437210567","full_name":"Syssos/ChatterboxGoactExample-v0.2.2","owner":"Syssos","description":"A simple example of how to utilize the Goact project to add chat functionality to an application.","archived":false,"fork":false,"pushed_at":"2022-11-01T01:17:00.000Z","size":41935,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T23:31:16.269Z","etag":null,"topics":[],"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/Syssos.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":"2021-12-11T06:52:41.000Z","updated_at":"2021-12-17T20:18:34.000Z","dependencies_parsed_at":"2023-01-20T17:00:53.868Z","dependency_job_id":null,"html_url":"https://github.com/Syssos/ChatterboxGoactExample-v0.2.2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Syssos/ChatterboxGoactExample-v0.2.2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syssos%2FChatterboxGoactExample-v0.2.2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syssos%2FChatterboxGoactExample-v0.2.2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syssos%2FChatterboxGoactExample-v0.2.2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syssos%2FChatterboxGoactExample-v0.2.2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Syssos","download_url":"https://codeload.github.com/Syssos/ChatterboxGoactExample-v0.2.2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syssos%2FChatterboxGoactExample-v0.2.2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271159299,"owners_count":24709239,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T23:33:24.893Z","updated_at":"2025-08-19T13:18:46.316Z","avatar_url":"https://github.com/Syssos.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Goact Example Project\nThis project is aimed at showcasing how the goact exoskeleton can be used to add full chatting functionality into a pre-existing front end. \n\nFor this example, the chatterbox component from the old front end directory is moved into the new frontend, and can be intergrated with a single import line and a single decloration line. \n\nAs of Goact v0.2.2 all of the functionality is contained in the 500x400px square component.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/Syssos/ChatterboxGoactExample-v0.2.2/blob/main/goactexampleImg.png\" alt=\"goact example img\"/\u003e\n\u003c/p\u003e\n\n## Dependancies\n- [Go](https://golang.org/)\n\t* UUID Package ([google/uuid](https://github.com/google/uuid))v1.2.0\n\t* JWT Go ([dgrijalva/jwt-go](https://github.com/dgrijalva/jwt-go))v3.2.0\n\t* Websocket Package ([gorilla/websocket](https://github.com/gorilla/websocket))v1.4.2\n\t* Mux Router ([gorilla/mux](https://github.com/gorilla/mux))v1.8.0\n\t* CORS Router ([rs/cors](https://github.com/rs/cors))v1.8.0\n\n- [Node.js \u0026 npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)\n\t* [axios](https://www.npmjs.com/package/axios)\n\t* [node-sass](https://www.npmjs.com/package/node-sass)\n\n## Running Locally\nTo get this project running local start by cloning this repository to a location on your local machine.\n\nThe Go Back end will need to be running at all times in order to have chat functionality. It is responsable for validating users, creating TCP/IP websocket connections, and tracking each chat room in a Go routine while any user is connected.\n\nThe Front end will optain a cookie string for the current user, this string will be valid for a predetermand amount of time and the browser uses it as a sort of key to tell the server the user is the person they claim to be. \n\nIn order for the project to run both the front and back end will need to be ran, these services will run on different ports and will both need to be started in their own termian session, or have one run in the background.\n\n\n### Terminal 1 (../goact/backend/)\n\n```bash\n$ go test ./...\n\nok      github.com/Syssos/goact\nok      github.com/Syssos/goact/models/chatroom\nok      github.com/Syssos/goact/routes\n\n$ go build .\n$ ./goact\nStarting server on localhost:8080\n\n```\n\n\u003e **Note:** This should run the 'go get' command for any needed package's that are not installed.\n\u003e Alternatively you can start the docker container.\n\u003e ```bash\n\u003e docker build -t backend .\n\u003e ```\n\u003e ```bash\n\u003e docker run -it -p 8080:8080 backend\n\u003e ```\n\n### Terminal 2 (../goact/goactexample/)\nThe first thing we need to do to get our front end together is install any packages needed by this project. The package.json file will in this directory includeds all of the required dependancies meaning the npm install command can handle grabbing them for us.\n\n```bash\nnpm install\n```\n\nWith dependancies gathered, and the backend running, we can start our frontend and begin interacting with the app.\n\n```bash\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyssos%2Fchatterboxgoactexample-v0.2.2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyssos%2Fchatterboxgoactexample-v0.2.2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyssos%2Fchatterboxgoactexample-v0.2.2/lists"}