{"id":27611885,"url":"https://github.com/sam9111/rescript-tutorial","last_synced_at":"2026-02-05T21:31:31.023Z","repository":{"id":106378220,"uuid":"338554440","full_name":"sam9111/rescript-tutorial","owner":"sam9111","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-30T05:50:41.000Z","size":241,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-26T01:38:46.923Z","etag":null,"topics":["rescript","webdevelopment-301"],"latest_commit_sha":null,"homepage":"","language":"ReScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc-by-sa-4.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sam9111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2021-02-13T10:59:45.000Z","updated_at":"2021-12-30T05:50:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c81cedb-e1b0-49d8-9ef3-27d6bba20b09","html_url":"https://github.com/sam9111/rescript-tutorial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sam9111/rescript-tutorial","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam9111%2Frescript-tutorial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam9111%2Frescript-tutorial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam9111%2Frescript-tutorial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam9111%2Frescript-tutorial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sam9111","download_url":"https://codeload.github.com/sam9111/rescript-tutorial/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sam9111%2Frescript-tutorial/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29135047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T20:50:26.975Z","status":"ssl_error","status_checked_at":"2026-02-05T20:49:26.082Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["rescript","webdevelopment-301"],"created_at":"2025-04-23T00:45:49.623Z","updated_at":"2026-02-05T21:31:30.987Z","avatar_url":"https://github.com/sam9111.png","language":"ReScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e Learnings from the \"Web Development 301 - Typed Functional Programming\" course as part of the Coronasafe Engineering Fellowship 2021\n\n[![License](https://img.shields.io/badge/license-CC%20BY--SA%204.0-orange)](./LICENSE.md)\n\n# Getting started\n\n```\ngit clone https://github.com/protoship/rescript-tutorial.git\ncd rescript-tutorial\nnpm install\nnpm run start\n```\n\nThen open VSCode in the same directory:\n\n```\ncode .\n```\n\nInstall the [rescript-vscode plugin](https://marketplace.visualstudio.com/items?itemName=chenglou92.rescript-vscode). For this, press ctrl+shift+p (cmd+shift+p in Mac) -\u003e \"Install Extensions\" -\u003e \"rescript-vscode\".\n\nNow you're all set to begin the tutorial!\n\nOpen the first chapter - `chap_1_immutable.res` and follow the instructions in the file.\n\nAs you're editing the code, watch the terminal where you ran `npm run start`. It will show any errors from the ReScript compiler and you will have to refer to it often as you're working through the exercises.\n\nThe ReScript compiler compiles the `.res` files gets into `.bs.js` files. For the first chapter, that would be `chap_1_immutable.bs.js`. You should open that file as well in a new window by pressing CTRL+O (CMD+O in Mac) and selecting the correct `.bs.js` file. Keep both `.res` file and `.bs.js` file side-by-side so you can see how the ReScript you write gets compiled to JavaScript in real-time.\n\n**Important Note**: You can run the ReScript program by calling `node` on the generated `.bs.js` file: \n\n```\nnode src/chap_1_immutable.bs.js\n```\n\nThere are automated tests scattered throughout the exercises - you can see their results by running the generated JavaScript. You can also add `Js.log` in your ReScript code to print any intermediate values for debugging. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam9111%2Frescript-tutorial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsam9111%2Frescript-tutorial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsam9111%2Frescript-tutorial/lists"}