Next.js redux starter
An opinionated Next.js starter kit with Express, Redux, SASS, and Jest.
About
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.
Features
- Dynamic routing with express and next-routes.
- State management with redux, react-redux, and next-redux-wrapper
- Styling with SASS and render using styled-jsx
- Unit testing with jest
- Linting with standard
- react-helmet, Immutable.js , dotenv, and more...
Getting started
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.
Structure overview
βββ README.md
βββ next.config.js
βββ package.json
βββ pages
β βββ _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
β βββ styles
β β βββ SearchResults.scss
β β βββ base.scss
β βββ test
β βββ __mocks__
β β βββ styleMock.js
β βββ components
β β βββ SearchResults.test.js
β βββ jest.setup.js
βββ yarn.lock