{"id":15645306,"url":"https://github.com/f-f/purescript-react-basic-todomvc","last_synced_at":"2025-04-30T11:15:11.742Z","repository":{"id":42883877,"uuid":"153026809","full_name":"f-f/purescript-react-basic-todomvc","owner":"f-f","description":"TodoMVC with purescript-react-basic","archived":false,"fork":false,"pushed_at":"2023-03-04T12:14:53.000Z","size":726,"stargazers_count":55,"open_issues_count":9,"forks_count":11,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-19T01:31:44.212Z","etag":null,"topics":["purescript","reactjs","todomvc"],"latest_commit_sha":null,"homepage":"","language":"PureScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/f-f.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-14T23:02:21.000Z","updated_at":"2025-01-13T02:51:50.000Z","dependencies_parsed_at":"2024-10-03T12:09:50.972Z","dependency_job_id":"6193f4ce-2d60-494f-82e2-a0f359770a98","html_url":"https://github.com/f-f/purescript-react-basic-todomvc","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/f-f%2Fpurescript-react-basic-todomvc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f-f%2Fpurescript-react-basic-todomvc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f-f%2Fpurescript-react-basic-todomvc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f-f%2Fpurescript-react-basic-todomvc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f-f","download_url":"https://codeload.github.com/f-f/purescript-react-basic-todomvc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251687577,"owners_count":21627590,"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":["purescript","reactjs","todomvc"],"created_at":"2024-10-03T12:06:05.993Z","updated_at":"2025-04-30T11:15:11.714Z","avatar_url":"https://github.com/f-f.png","language":"PureScript","readme":"# PureScript `react-basic` TodoMVC\n\nAn implementation of [TodoMVC](http://todomvc.com/) in [PureScript](http://www.purescript.org/) using the [`react-basic`](https://github.com/lumihq/purescript-react-basic) library.\n\nYou can see this deployed [here at `purescript-react-basic-todomvc.netlify.com`](https://purescript-react-basic-todomvc.netlify.com/)\n\n## Project structure\n\n- Entry point for the app is [`index.js`](https://github.com/f-f/purescript-react-basic-todomvc/blob/master/index.js),\n  that imports React and just instantiates the `Todo.Main` component (defined in PureScript).\n  This is where you might want to hook up more JS components in your project.\n- The tasklist is defined in the [`Main` component](https://github.com/f-f/purescript-react-basic-todomvc/blob/master/src/Todo/Main.purs).\n  The list of tasks is kept in this component's `State`, together with some more things (e.g. the current selector, etc.)\n- The above component then creates a [`Task` component](https://github.com/f-f/purescript-react-basic-todomvc/blob/master/src/Todo/Task.purs) for every task.\n  The only state we need to keep in it is the current edits for a focused `Task`.\n- Some things are achieved with a thin layer of JS FFI: [LocalStorage](https://github.com/f-f/purescript-react-basic-todomvc/blob/master/src/LocalStorage.js) and [routing](https://github.com/f-f/purescript-react-basic-todomvc/blob/master/src/Todo/App.js)\n\n## Development\n\n```bash\n## Install npm dependencies, PureScript compiler, etc\nnpm install\n\n## Build the PureScript project\nnpm run build\n\n## Start the dev server with hot reload and stuff\n##\n## Note: Parcel has hot reload on JS files only, so if you'd like to reload\n## when changing PureScript files, you have two options:\n## - use an editor integration - this will run `purs ide` and recompile the files you edit\n## - run `spago build --watch` in another terminal\n##\n## Note: the hot reload won't work if you change any FFI file,\n## so you'll have to `yarn build` again in this case.\nnpm start\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff-f%2Fpurescript-react-basic-todomvc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff-f%2Fpurescript-react-basic-todomvc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff-f%2Fpurescript-react-basic-todomvc/lists"}