{"id":22813169,"url":"https://github.com/morewings/ts-redux-next","last_synced_at":"2025-04-22T16:21:14.061Z","repository":{"id":239458067,"uuid":"717148309","full_name":"morewings/ts-redux-next","owner":"morewings","description":"Next.js app template with Redux features and App Router. Has test and middleware examples.","archived":false,"fork":false,"pushed_at":"2025-04-12T22:38:37.000Z","size":11901,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T23:26:41.461Z","etag":null,"topics":["jest","nextjs","nextjs-template","redux","redux-middleware","redux-toolkit","styled-components","template"],"latest_commit_sha":null,"homepage":"https://ts-redux-next.vercel.app/","language":"TypeScript","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/morewings.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,"zenodo":null}},"created_at":"2023-11-10T17:06:37.000Z","updated_at":"2025-04-12T22:38:11.000Z","dependencies_parsed_at":"2024-06-02T08:39:18.627Z","dependency_job_id":"1abe8278-9696-4009-9dd0-1661776558a1","html_url":"https://github.com/morewings/ts-redux-next","commit_stats":null,"previous_names":["morewings/ts-redux-next"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morewings%2Fts-redux-next","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morewings%2Fts-redux-next/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morewings%2Fts-redux-next/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morewings%2Fts-redux-next/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morewings","download_url":"https://codeload.github.com/morewings/ts-redux-next/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250275553,"owners_count":21403680,"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":["jest","nextjs","nextjs-template","redux","redux-middleware","redux-toolkit","styled-components","template"],"created_at":"2024-12-12T12:15:50.845Z","updated_at":"2025-04-22T16:21:14.009Z","avatar_url":"https://github.com/morewings.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Deploy to GitHub Pages](https://github.com/morewings/ts-redux-next/actions/workflows/pages.yml/badge.svg)](https://github.com/morewings/ts-redux-next/actions/workflows/pages.yml)\n[![Post-merge tasks](https://github.com/morewings/ts-redux-next/actions/workflows/merge-jobs.yml/badge.svg)](https://github.com/morewings/ts-redux-next/actions/workflows/merge-jobs.yml)\n[![Vercel](https://vercelbadge.vercel.app/api/morewings/ts-redux-next)](https://vercel.com/dima-vyshniakovs-projects/ts-redux-next)\n\n# Redux enabled Next template\n\n[![TS Redux Next](./design/cover.jpg)](#)\n\nThis template is for Next based web applications using Redux store and App Router configuration. This template has tests for React components, reducers, hooks. There is a basic Promise resolver middleware example.\n\nStatic html deployment: [Github pages](https://morewings.github.io/ts-redux-next/)\n\nFull-featured deployment: [Vercel](https://ts-redux-next.vercel.app/)\n\n## Features\n\n- Written **Typescript**.\n- Powered by **Nextjs**.\n- Configured to use **App router**.\n- **Redux** with DevTools support.\n- Promise resolving Redux **middleware example**.\n- **Generate** components and features from CLI.\n- **pnpm** for fast package management.\n- **Husky** for git hooks.\n- **Eslint** and **stylelint**.\n- **Jest** and **react-testing-library** for testing.\n- Supports **CSS Modules** and **Styled components**.\n\n## Quickstart\n\n### Prerequisites\n\n1. Install **Node** \u003e= 20.x.\n2. Install **pnpm**. E.g. `corepack prepare pnpm@latest --activate`.\n\n\n### Installation\n\nManually clone repo or use `degit`.\n\n```shell script\n# With CSS Modules config\nnpx degit github:morewings/ts-redux-next my-app\n# With Styled Components config\nnpx degit github:morewings/ts-redux-next#styled-components my-app\ncd ./my-app\npnpm i\n```\n\n## Generate components and features\n\nTemplate uses [generate-react-cli](https://www.npmjs.com/package/generate-react-cli). Templates are located at `./templates` folder.\n\n```shell script\npnpm run generate:component Foo\n```\n\nCreates all necessary React component files in `./src/components/Foo`. \n\n```shell script\npnpm run generate:component-loading Foo\n```\n\nCreates React component files for component with dynamically loading content in `./src/components/Foo`. \n\n```shell script\npnpm run generate:feature Foo\n```\n\nCreates reducer, React hooks accessing global state and selectors inside in `./src/features/Foo`. \n\n```shell script\npnpm run generate:page Foo\n```\n\nCreates Next App router compatible page in `./app/Foo` folder.\n\n## Enable Styled components\n\nYou can find all changes inside this [PR](https://github.com/morewings/ts-redux-next/pull/40) and [styled-components](https://github.com/morewings/ts-redux-next/tree/styled-components) branch.\n\n## Previous implementations\n\n[cra-template-quickstart-redux](https://github.com/morewings/cra-template-quickstart-redux)\n\n[react-template](https://github.com/morewings/react-template)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorewings%2Fts-redux-next","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorewings%2Fts-redux-next","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorewings%2Fts-redux-next/lists"}