{"id":20858200,"url":"https://github.com/adamhalasz/diet-vue","last_synced_at":"2025-05-12T08:31:14.353Z","repository":{"id":66092291,"uuid":"49086024","full_name":"adamhalasz/diet-vue","owner":"adamhalasz","description":"A tiny example on how to use Diet.js as the Router/Static File Handler, Vue for Dynamic Data Binding and Socket.io for Real-time Data Streaming.","archived":false,"fork":false,"pushed_at":"2016-01-05T19:22:18.000Z","size":31,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-21T01:43:04.016Z","etag":null,"topics":["diet","socket-io","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/adamhalasz.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-05T18:56:48.000Z","updated_at":"2023-09-08T17:05:26.000Z","dependencies_parsed_at":"2023-02-21T00:45:55.862Z","dependency_job_id":null,"html_url":"https://github.com/adamhalasz/diet-vue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adamhalasz%2Fdiet-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adamhalasz","download_url":"https://codeload.github.com/adamhalasz/diet-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225130787,"owners_count":17425506,"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":["diet","socket-io","vue","vuejs"],"created_at":"2024-11-18T04:45:02.220Z","updated_at":"2024-11-18T04:45:02.772Z","avatar_url":"https://github.com/adamhalasz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diet + Vue + Socket.io\nA tiny example on how to use Diet.js as the Router/Static File Handler, Vue for Dynamic Data Binding and Socket.io for Real-time Data Streaming.\n\n![Diet.js + Vue.js + Socket.io](http://g.recordit.co/szNjnYjmo1.gif)\n\n\n# Features\n- Updates a counter every second and streams the new value to all connected user agents with socket.io\n- Shares server side data with client side. Uses the ECT template engine to pass the signal ($) `data` values to the Vue Instance\n- Listens on Vue Instance Propety updates. When a user changes the input values the new values are saved to a JSON Object on the server and broadcasts the new values to all connected user agents\n \n# Usage\n\n### Install Dependencies\n```\nnpm install\n```\n\n### Run\n```\nnode index.js\n```\n\n### Visit\n```\nhttp://localhost:5000/\n```\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Ádám Halász\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhalasz%2Fdiet-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadamhalasz%2Fdiet-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadamhalasz%2Fdiet-vue/lists"}