Next.js redux starter

October 9, 2021 ยท View on GitHub

An opinionated Next.js starter kit with Express, Redux Toolkit, styled-components, and react-testing-library.

Build Status JavaScript Style Guide Greenkeeper badge

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

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.

Deployment

After npm run build finished, run

yarn serve

If you prefer using now, just modify now.json config.

Structure overview

โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ next.config.js
โ”œโ”€โ”€ now.json
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ pages
โ”‚ย ย  โ”œโ”€โ”€ _app.js
โ”‚ย ย  โ”œโ”€โ”€ _document.js
โ”‚ย ย  โ”œโ”€โ”€ about.js
โ”‚ย ย  โ””โ”€โ”€ index.js
โ”œโ”€โ”€ public
โ”‚ย ย  โ””โ”€โ”€ static
โ”œโ”€โ”€ server
โ”‚ย ย  โ””โ”€โ”€ index.js
โ”œโ”€โ”€ src
โ”‚ย ย  โ”œโ”€โ”€ components
โ”‚ย ย  โ”œโ”€โ”€ config.js
โ”‚ย ย  โ”œโ”€โ”€ features
โ”‚ย ย  โ”œโ”€โ”€ libs
โ”‚ย ย  โ”œโ”€โ”€ store.js
โ”‚ย ย  โ”œโ”€โ”€ tests
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ components
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ test-utils.js
โ”‚ย ย  โ””โ”€โ”€ theme.js
โ””โ”€โ”€ yarn.lock