{"id":17834993,"url":"https://github.com/carlosedp/zio-scalajs-stack","last_synced_at":"2025-09-11T11:50:35.699Z","repository":{"id":44563975,"uuid":"512282157","full_name":"carlosedp/zio-scalajs-stack","owner":"carlosedp","description":"Full-stack Scala ZIO + Scala.js application for test","archived":false,"fork":false,"pushed_at":"2025-03-14T22:20:19.000Z","size":570,"stargazers_count":23,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-17T08:13:53.671Z","etag":null,"topics":["full-stack","scala","scalajs","zio"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/carlosedp.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":"2022-07-09T20:44:44.000Z","updated_at":"2025-03-08T10:24:03.000Z","dependencies_parsed_at":"2023-10-20T20:38:22.159Z","dependency_job_id":"c17a0c0b-ac63-4e3c-8f51-993255931f85","html_url":"https://github.com/carlosedp/zio-scalajs-stack","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/carlosedp%2Fzio-scalajs-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosedp%2Fzio-scalajs-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosedp%2Fzio-scalajs-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosedp%2Fzio-scalajs-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlosedp","download_url":"https://codeload.github.com/carlosedp/zio-scalajs-stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244444696,"owners_count":20453777,"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":["full-stack","scala","scalajs","zio"],"created_at":"2024-10-27T20:16:07.573Z","updated_at":"2025-03-19T14:31:33.828Z","avatar_url":"https://github.com/carlosedp.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Full Stack Scala 3 + ZIO + Scala.js\n\nAn experimental stack built with Scala 3 and composed of a ZIO backend and a Scala.js frontend. The backend includes logging and metrics for observability.\n\nLibraries used:\n\n- Scala 3\n- ZIO\n  - zio-http\n  - zio-logging\n  - zio-metrics\n  - zio-test\n- Scala.js\n- scalajsdom\n- scalatest for the frontend\n- Nodejs\n  - jsdom\n  - Vite\n\n\n## Build\n\nThe build process supports the following targets:\n\n**Backend:**\n\n- Generate Native Image (GraalVM) binary for current platform with locally installed GraalVM: `./mill backend.nativeImage`\n- Generate Native Image (GraalVM) Linux binary in Docker container: `./mill backend.dockerNative.buildBin`\n- Generate Docker Image with Native Image binary (for Linux in Docker): `mill backend.dockerNative.build`\n- Generate Docker Image with a JVM base and .jar app: `mill backend.docker.build`\n\nIf GraalVM fails building the binary on Linux, install libz-dev (Eg. `sudo apt-get install libz-dev` on Ubuntu/Debian or `sudo dnf install zlib-devel` on Fedora).\n\n**Frontend:**\n\n- Build application for deployment (install nodejs, npm and `npm i` first): `npm run build`\n\n## Development\n\n1. Install a JDK in your path\n2. Install Node.js and npm\n3. Install NPM dependencies with `npm install`\n4. To start the development server, run `npm run start`, it will build the Scala.js Javascript files, start the ZIO backend and run Vite dev server. The Scala.js files are not automatically generated and reloaded. For this to work, open another shell and run `./mill -w frontend.fastLinkJS`.\n\nOpen \u003chttp://localhost:5173\u003e or \u003chttp://localhost:5173/?name=Yourname\u003e for testing.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosedp%2Fzio-scalajs-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarlosedp%2Fzio-scalajs-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarlosedp%2Fzio-scalajs-stack/lists"}