{"id":16759062,"url":"https://github.com/alexsugak/fsnake","last_synced_at":"2026-05-20T03:32:30.073Z","repository":{"id":148234059,"uuid":"129130623","full_name":"AlexSugak/fsnake","owner":"AlexSugak","description":"snake game with F# and Fable","archived":false,"fork":false,"pushed_at":"2018-04-11T17:33:12.000Z","size":2573,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T20:51:30.371Z","etag":null,"topics":["elmish","fable","fsharp","game","react","snake"],"latest_commit_sha":null,"homepage":null,"language":"F#","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/AlexSugak.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":"2018-04-11T17:32:34.000Z","updated_at":"2021-07-17T20:04:05.000Z","dependencies_parsed_at":"2023-05-19T12:15:54.833Z","dependency_job_id":null,"html_url":"https://github.com/AlexSugak/fsnake","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/AlexSugak%2Ffsnake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSugak%2Ffsnake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSugak%2Ffsnake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexSugak%2Ffsnake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexSugak","download_url":"https://codeload.github.com/AlexSugak/fsnake/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243843588,"owners_count":20356869,"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":["elmish","fable","fsharp","game","react","snake"],"created_at":"2024-10-13T04:07:08.681Z","updated_at":"2026-05-20T03:32:30.033Z","avatar_url":"https://github.com/AlexSugak.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Snake game with Fable.Elmish.React\n\n## Requirements\n\n* [dotnet SDK](https://www.microsoft.com/net/download/core) 2.0.0 or higher\n* [node.js](https://nodejs.org) 4.8.2 or higher\n* npm5: JS package manager\n\nAlthough is not a Fable requirement, on macOS and Linux you'll need [Mono](http://www.mono-project.com/) for other F# tooling like Paket or editor support.\n\n## Editor\n\nThe project can be used by editors compatible with the new .fsproj format, like VS Code + [Ionide](http://ionide.io/), Emacs with [fsharp-mode](https://github.com/fsharp/emacs-fsharp-mode) or [Rider](https://www.jetbrains.com/rider/). **Visual Studio for Mac** is also compatible but in the current version the package auto-restore function conflicts with Paket so you need to disable it: `Preferences \u003e Nuget \u003e General`.\n\n## Building and running the app\n\n* Install JS dependencies: `npm install`\n* **Move to `src` folder**: `cd src`\n* Install F# dependencies: `dotnet restore`\n* Start Fable daemon and [Webpack](https://webpack.js.org/) dev server: `dotnet fable npm-start`\n* In your browser, open: http://localhost:8080/\n\n\u003e `dotnet fable yarn-start` (or `npm-start`) is used to start the Fable daemon and run a script in package.json concurrently. It's a shortcut of `yarn-run [SCRIP_NAME]`, e.g. `dotnet fable yarn-run start`.\n\nIf you are using VS Code + [Ionide](http://ionide.io/), you can also use the key combination: Ctrl+Shift+B (Cmd+Shift+B on macOS) instead of typing the `dotnet fable yarn-start` command. This also has the advantage that Fable-specific errors will be highlighted in the editor along with other F# errors.\n\nAny modification you do to the F# code will be reflected in the web page after saving. When you want to output the JS code to disk, run `dotnet fable yarn-build` (or `npm-build`) and you'll get a minified JS bundle in the `public` folder.\n\n## Project structure\n\n### Paket\n\n[Paket](https://fsprojects.github.io/Paket/) is the package manager used for F# dependencies. It doesn't need a global installation, the binary is included in the `.paket` folder. Other Paket related files are:\n\n- **paket.dependencies**: contains all the dependencies in the repository.\n- **paket.references**: there should be one such a file next to each `.fsproj` file.\n- **paket.lock**: automatically generated, but should committed to source control, [see why](https://fsprojects.github.io/Paket/faq.html#Why-should-I-commit-the-lock-file).\n- **Nuget.Config**: prevents conflicts with Paket in machines with some Nuget configuration.\n\n\u003e Paket dependencies will be installed in the `packages` directory. See [Paket website](https://fsprojects.github.io/Paket/) for more info.\n\n### npm\n\n- **package.json**: contains the JS dependencies together with other info, like development scripts.\n- **package-lock.json**: is the lock file created by npm5.\n\n\u003e JS dependencies will be installed in `node_modules`. See [npm](https://www.npmjs.com/) website for more info.\n\n### Webpack\n\n[Webpack](https://webpack.js.org) is a bundler, which links different JS sources into a single file making deployment much easier. It also offers other features, like a static dev server that can automatically refresh the browser upon changes in your code or a minifier for production release. Fable interacts with Webpack through the `fable-loader`.\n\n- **webpack.config.js**: is the configuration file for Webpack. It allows you to set many things: like the path of the bundle, the port for the development server or [Babel](https://babeljs.io/) options. See [Webpack website](https://webpack.js.org) for more info.\n\n### F# source files\n\nThe template only contains two F# source files: the project (.fsproj) and a source file (.fs) in `src` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsugak%2Ffsnake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexsugak%2Ffsnake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexsugak%2Ffsnake/lists"}