- ReactJS
- NextJS
- TypeScript
- Styled Components
- Jest
- React Testing Library
- Eslint
- Prettier
- Husky
- Plop to automatize components creation structure, see more detail here
- Node js => v10
- Install dependencies
yarn (or npm i)
- Run
yarn dev (or npm dev)
to run next development server (it will be available inhttp://localhost:3000
- Run
yarn generate [ComponentName]
to create a new component structure automatically (the result will be generated insrc/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 :)