{"id":27611605,"url":"https://github.com/pitou/redux-easy-app","last_synced_at":"2025-04-23T00:38:34.132Z","repository":{"id":2060276,"uuid":"45637207","full_name":"pitou/redux-easy-app","owner":"pitou","description":"Wrapper library for a Redux Isomorphic App with Router","archived":false,"fork":false,"pushed_at":"2023-01-04T07:54:36.000Z","size":1291,"stargazers_count":131,"open_issues_count":11,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-19T05:12:12.518Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/pitou.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}},"created_at":"2015-11-05T20:25:33.000Z","updated_at":"2023-09-07T13:59:23.000Z","dependencies_parsed_at":"2023-01-13T11:36:27.583Z","dependency_job_id":null,"html_url":"https://github.com/pitou/redux-easy-app","commit_stats":null,"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitou%2Fredux-easy-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitou%2Fredux-easy-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitou%2Fredux-easy-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pitou%2Fredux-easy-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pitou","download_url":"https://codeload.github.com/pitou/redux-easy-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250348872,"owners_count":21415907,"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":[],"created_at":"2025-04-23T00:38:33.608Z","updated_at":"2025-04-23T00:38:34.123Z","avatar_url":"https://github.com/pitou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"redux-easy-app\n==============\n\nThis library can help you reduce the boilerplate of a **Redux isomorphic app** to the minimum.\n\nInstallation\n------------\n\nYou can install the package using:\n\n    npm install redux-easy-app\n\nHowever, if you are starting to write an app from scratch, you may consider downloading the\n[redux-app-skeleton](https://github.com/pitou/redux-app-skeleton), which depends on this module and\nalready uses the functions explained in the following section.\n\nRedux'(s?) function wrappers\n----------------------------\n\n*redux-easy-app* exposes only three functions:\n\n**createContainer()**\n\nBinds a component to his props and actions.\n\nYou may want use this one on every component that interacts in any way with the state of the application.\n\n    createContainer(ExampleComponent, SomeActions, mapStateToProps);\n\n**renderClientApp()**\n\nRenders the app in the browser, given its routes and reducers.\n\n    renderClientApp({\n        routes,\n        reducers,\n        appRootElement\n    });\n\n**startServerApp()**\n\nThis one needs a larger number of options but takes care of a lot of things: isomorphism, data pre-fetch,\nstate push into the tree of routes.\n\nYou have to provide an instance of an Express app as first argument. The **request** object will be internally\nused to decide which route has been requested and fetch the data accordingly, the **response** object will\nbe used to send the rendered HTML.\n\nThe *viewFilename* option refers to a [nunjucks](https://www.npmjs.com/package/nunjucks) template file, usually the index.html of your app.\nIn the future, other template engines will be supported too.\n\n    startServerApp(app, {\n        routes,\n        reducers,\n        routesFetchersMap,\n        viewsFolderPath,\n        viewFilename\n    });\n\nThe option *routesFetchersMap* should be an array of objects having the format specified in\n[this example](https://github.com/pitou/redux-app-skeleton/blob/master/src/server/routesFetchersMap.js).\n\nGiven a certain route, the server app will call the function that you specified as the *func* parameter\nand then the page will be rendered with the fetched data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitou%2Fredux-easy-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpitou%2Fredux-easy-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpitou%2Fredux-easy-app/lists"}