{"id":16581877,"url":"https://github.com/kentnek/elm-server-raspi","last_synced_at":"2026-04-19T17:01:25.205Z","repository":{"id":89071608,"uuid":"128661367","full_name":"kentnek/elm-server-raspi","owner":"kentnek","description":"A demo of an Internet-of-Things application, where both the frontend and backend are written in Elm.","archived":false,"fork":false,"pushed_at":"2018-04-18T05:41:15.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T01:31:55.908Z","etag":null,"topics":["elm","iot","raspberry-pi","server"],"latest_commit_sha":null,"homepage":"","language":"Elm","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/kentnek.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-08T16:39:09.000Z","updated_at":"2018-05-07T16:16:48.000Z","dependencies_parsed_at":"2023-06-13T19:30:30.115Z","dependency_job_id":null,"html_url":"https://github.com/kentnek/elm-server-raspi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kentnek/elm-server-raspi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnek%2Felm-server-raspi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnek%2Felm-server-raspi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnek%2Felm-server-raspi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnek%2Felm-server-raspi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kentnek","download_url":"https://codeload.github.com/kentnek/elm-server-raspi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kentnek%2Felm-server-raspi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267961953,"owners_count":24172528,"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-07-30T02:00:09.044Z","response_time":70,"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":["elm","iot","raspberry-pi","server"],"created_at":"2024-10-11T22:30:08.102Z","updated_at":"2026-04-19T17:01:20.106Z","avatar_url":"https://github.com/kentnek.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-server-raspi\n\nA demo of an Internet-of-Things application, where both the frontend and backend are written in Elm.\n\nThe server, to be installed on a Raspberry Pi, controls a SparkFun RGB Rotary Encoder.\n\n## Getting Started\n\nThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a Raspberry Pi.\n\n### Prerequisites\n\n- Node.js (latest version)\n- Yarn (as a dependency manager, rather than NPM)\n\n### Installing\n\n1. Clone this project to a folder on your local machine, e.g. `~/elm-server-raspi`\n2. Inside the folder, do `yarn install --ignore-optional` to install necessary dependencies\n(except for those specific to Raspberry Pi).\n3. Update the server's Websocket url in `/webpack/client.dev.js`.\n4. To run the client locally with `webpack-dev-server`, do `yarn ui:start`. The client will be available at `localhost:2000`.\n5. To build a live compressed version of the client, do `yarn ui:build`. The built client can be found in `dist/ui`.\n6. To compile the Elm server to JavaScript, do `yarn api:build`. The build server can be found in `dist/api/elm-server.js`.\n\n## Deployment\n1. The scripts in `package.json` assumes that the Raspberry Pi is available in the same network at `pi@raspi`.\n2. Do `yarn ui:deploy` to build the client and deploy it in `/var/www/html` on the Raspberry Pi.\n3. Do `yarn api:deploy` to build the Elm server into `elm-server.js` and deploy to the Raspberry Pi.\n4. On the Raspberry Pi, run `sudo node elm-server.js` (`sudo` is required) to start the server.\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details\n\n## Acknowledgments\n- [elm-collage](https://github.com/timjs/elm-collage/) - Elm vector graphics library\n- [elm-web-server](https://github.com/opvasger/elm-web-server/) - An API with Node.js-bindings for Elm WebSocket/HTTP-servers\n- [elm-webpack-loader](https://github.com/elm-community/elm-webpack-loader) - Webpack loader for the Elm language\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentnek%2Felm-server-raspi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkentnek%2Felm-server-raspi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkentnek%2Felm-server-raspi/lists"}