{"id":22855189,"url":"https://github.com/vinzdef/ipp","last_synced_at":"2026-04-12T00:04:03.973Z","repository":{"id":86493104,"uuid":"138091902","full_name":"vinzdef/ipp","owner":"vinzdef","description":"Realtime counter with Go, React and WebSockets","archived":false,"fork":false,"pushed_at":"2018-07-13T11:22:55.000Z","size":7410,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T11:49:51.610Z","etag":null,"topics":["go","golang","gorilla-websocket","react","redux","webpack","websockets"],"latest_commit_sha":null,"homepage":"http://188.166.103.94:3000/","language":"CSS","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/vinzdef.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-20T22:21:30.000Z","updated_at":"2023-03-05T10:22:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"ceb9a4c3-246d-4d92-91c4-c5fa234efc50","html_url":"https://github.com/vinzdef/ipp","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/vinzdef/ipp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinzdef%2Fipp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinzdef%2Fipp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinzdef%2Fipp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinzdef%2Fipp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vinzdef","download_url":"https://codeload.github.com/vinzdef/ipp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vinzdef%2Fipp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270466381,"owners_count":24588791,"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-14T02:00:10.309Z","response_time":75,"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":["go","golang","gorilla-websocket","react","redux","webpack","websockets"],"created_at":"2024-12-13T07:10:36.701Z","updated_at":"2026-04-12T00:04:03.931Z","avatar_url":"https://github.com/vinzdef.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# i++ \n\nExercise web application where users can collectively increase the value of a counter on the server.\n\n\nServer is in Go, Frontend in React.\nCommunication is managed via WebSockets.\n\n\n### How to run this program locally\n\n- Download the latest zip from the [releases page](https://github.com/ghzmdr/TTI/releases)  \n- Unzip in a directory of your choiche\n- Source `.env.local` Run `./output/backend` from the root of the project (or `yarn start:local`)\n- Navigate to [localhost:3000](http://localhost:3000) in your browser\n\n\nA minimal frontend is also exposed at [http://localhost:3000/static/minimal.html](http://localhost:3000/minimal.html)\n\n#### Development mode \n- `yarn develop:frontend`\n- `yarn develop:backend`\n\nThis will serve the web app under [http://localhost:8080](http:////localhost:8080) (trough Webpack Dev Server)\nAnd the normal API + Static under [http:////localhost:3000](http:////localhost:3000) \n\n#### Building \n- `yarn install`\n- `yarn build:frontend`\n- `yarn build:backend`\n\n\n___\n\n### Requirements:\n\n#### Go Server:\n\n- Has an internal counter\n- Serves static files\n- Has `POST` endpoint to increase counter\n- Has WebSocket to broadcast counter value\n- Host address is ser via env variables\n\n#### Frontend:\n\n- React + Redux\n- ES6 + JSX\n- Reads value over WebSocket\n- Has increase button that sends `POST`\n- Looks nice, maybe with some CSS Framework\n- Built with Webpack\n- Has indicator for connection status\n- Handles connection close gracefully \n\n___\n\n### Phases\n\n#### 0\n- [x] Set up frontend boilerplate\n- [x] Set up a simple static server\n- [x] Have a minimal working environment\n- [x] Setup releases including built files\n\n#### 1\n- [x] WebSocket Endpoint Handler\n- [x] WebSocket Connection Handler\n- [x] POST Endpoint\n- [x] POST Action\n- [x] UI\n\n#### 2\n- [x] Polish UI and server code\n- [x] Ensure portability\n- [x] Release V1\n\n\n##### 2.1\n- [x] Add reset endpoint and gui\n\n\n#### 3\n- [x] Refactor backend code for modularity\n- [x] Allow address configuration from env variables\n- [x] Seamlessly integrate change in frontend\n- [X] Display a websocket status indicator\n- [X] Handle disconnection gracefully\n\n___\n\n### Learning material\n\n- [Gorilla Chat Example](https://github.com/gorilla/websocket/tree/master/examples/chat)\n- [The Little Go Book](http://openmymind.net/The-Little-Go-Book/)\n- [Concurrency patterns in Go](https://www.youtube.com/watch?v=YEKjSzIwAdA)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinzdef%2Fipp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvinzdef%2Fipp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvinzdef%2Fipp/lists"}