{"id":15950556,"url":"https://github.com/buntec/minimal-scala-native-http4s-server-app","last_synced_at":"2025-04-04T04:41:12.678Z","repository":{"id":197833190,"uuid":"699443386","full_name":"buntec/minimal-scala-native-http4s-server-app","owner":"buntec","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-29T17:06:51.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T16:12:37.165Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","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/buntec.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":"2023-10-02T16:39:02.000Z","updated_at":"2023-10-02T17:01:50.000Z","dependencies_parsed_at":"2023-10-02T22:59:20.302Z","dependency_job_id":"9c9c77d8-e414-4a6a-88d0-9593bc2c1ce1","html_url":"https://github.com/buntec/minimal-scala-native-http4s-server-app","commit_stats":null,"previous_names":["buntec/minimal-scala-native-http4s-server-app"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntec%2Fminimal-scala-native-http4s-server-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntec%2Fminimal-scala-native-http4s-server-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntec%2Fminimal-scala-native-http4s-server-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buntec%2Fminimal-scala-native-http4s-server-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buntec","download_url":"https://codeload.github.com/buntec/minimal-scala-native-http4s-server-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247123093,"owners_count":20887259,"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":[],"created_at":"2024-10-07T12:59:38.627Z","updated_at":"2025-04-04T04:41:12.656Z","avatar_url":"https://github.com/buntec.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A toy web server written in Scala using [http4s](https://http4s.org/)\n\nThe point of this project is to demonstrate how [scala-cli](https://scala-cli.virtuslab.org/)\nand [nix flakes](https://nixos.wiki/wiki/Flakes) can be leveraged to build and distribute\nScala apps in 4 different ways:\n - as a standalone jar running on the JVM;\n - as a native executable compiled by [Scala Native](https://scala-native.org/en/latest/);\n - as a [GraalVM native image](https://www.graalvm.org/latest/reference-manual/native-image/);\n - as a Node.js app compiled by [Scala.js](https://www.scala-js.org/).\n\nIf you have [nix](https://nixos.org/download.html) installed and [flakes enabled](https://nixos.wiki/wiki/Flakes#Enable_flakes):\n\n```shell\nnix run github:buntec/minimal-scala-native-http4s-server-app#jvm --refresh\n\nnix run github:buntec/minimal-scala-native-http4s-server-app#native --refresh\n\nnix run github:buntec/minimal-scala-native-http4s-server-app#graal --refresh\n\nnix run github:buntec/minimal-scala-native-http4s-server-app#node --refresh\n```\n\nNote that running any of the above will be slow the first time only -\nafter the initial build everything is cached in your nix store.\n\nIf you want the actual binary, simply replace `run` by `build`.\n\nThis flake also contains a dev shell suitable for working on the app:\n```shell\nnix develop github:buntec/minimal-scala-native-http4s-server-app --refresh\n```\n\n## Notes\nThe `--refresh` flag above ensures that you always get the most recent commit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuntec%2Fminimal-scala-native-http4s-server-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuntec%2Fminimal-scala-native-http4s-server-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuntec%2Fminimal-scala-native-http4s-server-app/lists"}