An opinionated Next.js starter kit with Express, Redux, styled-components, and react-testing-library.
Next.js is an awesome and minimalistic framework to make a modern universal react app. However, there're times that we need a bit more features to build a complex SPA. That's why this project is born.
- β² Based on latest Next.js
- π Dynamic routing with express and next-routes.
- π State management with redux, react-redux, and next-redux-wrapper
- π Styling with styled-components
- π Unit testing with react-testing-library
- π Linting staged changes on pre-commit with standard
- β react-helmet, Immutable.js , dotenv, and more...
git clone https://github.com/CodementorIO/nextjs-redux-starter my-project
cd my-project
yarn install
yarn start
Then open http://localhost:3100/
to see your app.
After npm run build
finished, run
yarn serve
If you prefer using now
, just modify now.json
config.
βββ README.md
βββ next.config.js
βββ package.json
βββ pages
βΒ Β βββ _app.js
βΒ Β βββ _document.js
βΒ Β βββ about.js
βΒ Β βββ index.js
βββ routes.js
βββ server
βΒ Β βββ index.js
βββ src
βΒ Β βββ actions
βΒ Β βΒ Β βββ repos.js
βΒ Β βββ components
βΒ Β βΒ Β βββ SearchResults.js
βΒ Β βββ config.js
βΒ Β βββ containers
βΒ Β βΒ Β βββ SearchRepoContainer.js
βΒ Β βββ libs
βΒ Β βΒ Β βββ github.js
βΒ Β βββ reducers
βΒ Β βΒ Β βββ index.js
βΒ Β βΒ Β βββ repos.js
βΒ Β βββ store
βΒ Β βΒ Β βββ createStore.js
βΒ Β βββ test
βΒ Β βββ components
βΒ Β βΒ Β βββ SearchResults.test.js
βΒ Β βββ test-utils.js
βββ yarn.lock