A React advanced boilerplate using NextJS, TypeScript, Styled Components and PWA support
yarn (or npm i)
yarn dev (or npm dev)
to run next development server (it will be available in http://localhost:3000
yarn generate [ComponentName]
to create a new component structure automatically (the result will be generated in src/components/[ComponentName]
)yarn dev (or npm dev)
: Run next development serveryarn build (or npm run build)
: Generate next production buildyarn start (or npm start)
: Run next production serveryarn test (or npm run test)
: Run testsyarn test:watch (or npm run test)
: Run tests in watch mode
├── /src/
│ ├── /components/
│ ├── /[ComponentName]/
├── /index.tsx/ # Component file
├── /styles.ts/ # Component styled-components styles
├── /test.tsx/ # Component test file
Run yarn create next-app -e https://github.com/rodrigowpl/frontend-next-boilerplate
Enjoy it :)