{"id":16061265,"url":"https://github.com/krzyzanowskim/onlineswiftplayground","last_synced_at":"2025-04-07T10:29:08.583Z","repository":{"id":41092672,"uuid":"116609416","full_name":"krzyzanowskim/OnlineSwiftPlayground","owner":"krzyzanowskim","description":"Online Swift Playground","archived":false,"fork":false,"pushed_at":"2024-03-10T16:54:00.000Z","size":10387,"stargazers_count":238,"open_issues_count":8,"forks_count":32,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-04-14T05:36:45.761Z","etag":null,"topics":["kitura","server-side-swift","swift","swift-on-server","web"],"latest_commit_sha":null,"homepage":"http://online.SwiftPlayground.run","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krzyzanowskim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["krzyzanowskim"]}},"created_at":"2018-01-08T00:12:47.000Z","updated_at":"2024-03-04T04:28:13.000Z","dependencies_parsed_at":"2024-04-12T11:12:07.899Z","dependency_job_id":null,"html_url":"https://github.com/krzyzanowskim/OnlineSwiftPlayground","commit_stats":{"total_commits":157,"total_committers":9,"mean_commits":"17.444444444444443","dds":"0.13375796178343946","last_synced_commit":"b937b34a80dbe5d562753e13dc6e188f71765cd0"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FOnlineSwiftPlayground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FOnlineSwiftPlayground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FOnlineSwiftPlayground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krzyzanowskim%2FOnlineSwiftPlayground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krzyzanowskim","download_url":"https://codeload.github.com/krzyzanowskim/OnlineSwiftPlayground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247635131,"owners_count":20970676,"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":["kitura","server-side-swift","swift","swift-on-server","web"],"created_at":"2024-10-09T04:08:24.527Z","updated_at":"2025-04-07T10:29:08.565Z","avatar_url":"https://github.com/krzyzanowskim.png","language":"Swift","funding_links":["https://github.com/sponsors/krzyzanowskim"],"categories":[],"sub_categories":[],"readme":"# SwiftPlayground.run\n\n[![Platform](https://img.shields.io/badge/Platforms-macOS%20%7C%20Linux-4E4E4E.svg?colorA=28a745)](#installation)\n[![Twitter](https://img.shields.io/badge/twitter-@krzyzanowskim-blue.svg?style=flat\u0026colorB=64A5DE\u0026label=Twitter)](https://twitter.com/krzyzanowskim)\n\nOnline Swift Playground. Implemented in Swift.\n\nTBA. Checkout http://SwiftPlayground.run\n\n![SwiftPlayground.run](https://user-images.githubusercontent.com/758033/35674872-55a53386-0746-11e8-8bc1-ae5aee13fcfd.gif)\n\n## Installation \u0026 Run\n\n```shell\n$ git clone https://github.com/krzyzanowskim/OnlineSwiftPlayground.git\n$ cd OnlineSwiftPlayground\n$ ./run.sh\n```\n\nThe `run.sh` script will generate Xcode project (on macOS) and bootstrap the environment. `run.sh` needs `npm` to be installed to work properly.\nBootstraping involves\n1. Download Swift Toochains supported by the playground\n2. Pre-build support module using the toolchains\n3. Install dependencies\n4. Launches web server on localhost on port 8080\n\nNow you could access playground pointing web browser to 127.0.0.1:8080.\n\n## Development\n\n### Xcode\n\nGenerate Xcode project\n\n```\n$ swift package generate-xcodeproj\n```\n\n### React\n\nWeb user interface is build with [React](https://reactjs.org/) and [webpack](https://webpack.js.org/).\n\n```\n$ npm run build\n```\n\n## Docker\n\n[krzyzanowskim/onlineswiftplayground](https://store.docker.com/community/images/krzyzanowskim/onlineswiftplayground)\n\nDownload the latest image:\n\n```\n$ docker pull krzyzanowskim/onlineswiftplayground\n```\n\nor build docker image by yourself:\n\n```\n$ git clone https://github.com/krzyzanowskim/OnlineSwiftPlayground.git\n$ cd OnlineSwiftPlayground\n$ docker buildx create --use\n$ docker buildx build --platform=linux/amd64,linux/arm64 . -t krzyzanowskim/onlineswiftplayground\n```\n\nthen run container:\n\n```\n$ docker run -d -p 8080:8080 --name onlineswiftplayground -t krzyzanowskim/onlineswiftplayground\n```\n\nand wait until docker container is up (usually several seconds).\n\nPlayground is available at [http://localhost:8080](http://localhost:8080).\nIf the docker setup uses VirtualBox, the you can get the IP address from `docker-machine ip` command.\n\n```\n$ open http://$(docker-machine ip):8080\n```\n\n## Config\n\nThird party frameworks should be copied to `Frameworks` directory (Frameworks are for **macOS** host only)\n\nSee `config/` for GitHub auth. sample config.\n\n## Author\n\nSwiftPlayground.run is owned and maintained by [Marcin Krzyzanowski](https://www.krzyzanowskim.com)\n\nYou can follow me on Twitter at [@krzyzanowskim](https://twitter.com/krzyzanowskim) for project updates and releases.\n\n## License\n\nCreative Commons Attribution Non Commercial 4.0. See [LICENSE](LICENSE.txt) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzyzanowskim%2Fonlineswiftplayground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrzyzanowskim%2Fonlineswiftplayground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrzyzanowskim%2Fonlineswiftplayground/lists"}