Intro
Generator next js for react server side rendering
Using library
- Next js supports react server side rendering
- Redux supports manage state
- Redux form supports handling form
- Style using Sass
- Testing using Jest
- Eslint check style
Installation
npm install -g gen-next-js
Usage
mkdir example
cd example
gen-next-js .
Options
-h, --help # Print the generator's options and usage
--i18n # Generate NextJS app with i18n multilanguage configuration
Output directory structure
├── commons
│ ├── components
│ │ ├── index.js
│ │ └── Layout
│ │ ├── Body
│ │ │ └── index.js
│ │ ├── Header
│ │ │ ├── index.js
│ │ │ └── NavBar.js
│ │ └── index.js
│ ├── redux
│ │ └── index.js
│ └── utils
├── env-config.js
├── jest.config.js
├── jest.setup.js
├── modules
│ └── home
│ ├── home.action.js
│ ├── home.reducer.js
│ └── index.js
├── next.config.js
├── package.json
├── pages
│ ├── _document.js
│ └── index.js
├── postcss.config.js
├── server.js
├── services
│ └── sample.service.js
├── static
│ └── sample.css
└── test
Contributors
- DuyPT
- MinhHuynh
License
This project is licensed under the MIT License - see the LICENSE.md file for details