A customized Next.js starter kit with Express, Redux, Redux-Saga and SCSS.
Next.js is a lightweight framework for static and serverβrendered applications. However, it takes a little time to set up the environment for some features we want. As a result, the boilerplate is here for quick build the project in the beginning.
- Server build with Express
- State management with redux and next-redux-wrapper
- Async flow managment library with redux-saga and next-redux-saga
- Persistent data collections for Javascript with Immutalbe
- Send request to the server with Axios
- Stylying with SCSS with CSS pre-processor
- Styling with PostCss with CSS post-processor
- Setting up a custom alias for directories with babel-plugin-module-resolver
git clone https://github.com/yrfang/nextjs-starter
cd nextjs-starter
yarn install
yarn start
Then open http://localhost:3200
to view your app.
βββ README.md
βββ next.config.js
βββ postcss.config.js
βββ nodemon.json
βββ package.json
βββ babelrc
βββ pages
β βββ _app.js
β βββ _document.js
β βββ about.js
β βββ index.js
βββ server
β βββ index.js
β βββ routes.js
βββ src
β βββ actions
β βββ api
β βββ components
β β βββ Layout
β βββ constants
β β βββ initialState.js
β β βββ types.js
β βββ reducers
β βββ sagas
β βββ stores
β β βββ createStore.js
β βββ styles
βββ yarn.lock
- raw-loader for CSS set up
- unit test environment
- lint environmnet and its rules
- dynamic routing for server
- storybook