- TypeScript
- Next.js
- React.js
- SWR
- Tailwind CSS
- Storybook
- GitHub CI
- Docker
- [OPTIONAL] Sentry
- [OPTIONAL] Google Analytics
- Automatically analyze code after pushing to GitHub
- Analyze with
CodeQL - Analyze with
njsscan - Test building production build with
yarn build - Test building Docker with
docker build
- Analyze with
- Available to build as a Docker image
- Exclude all useless components for a production build
- For example,
storybookandeslint
- For example,
- Exclude all useless components for a production build
- Built-in
.vercelignoreso that you can install dependencies withyarn --production- Exclude all useless components for a production build
- For example,
storybookandeslint
- For example,
- Exclude all useless components for a production build
- Built-in Sentry support
- Built-in Google Analytics support
- Built-in NProgress (process bar) support
- Built-in ESLint support
- with featured ESLint rules
- strictly follow the
ESLintrules
- Component Driven User Interfaces
- Built-in Storybook support
yarnconsts.tsPRODUCT_NAME: your project nameENABLE_GA: enable Google Analytics supportENABLE_SENTRY: enable Sentry support- You should initiate your Sentry.
- We only provided the base architecture
.env.local.example- Should copy to
.env.local NEXT_PUBLIC_GA_ID: your Google Analytics ID after enablingconsts.ts>ENABLE_GA
- Should copy to
I recommend to use WebStorm or Visual Studio Code to develop this template.
yarn dev # dev server
yarn storybook # storybook
yarn eslint .yarn build
yarn startdocker build -t next-app .
docker run -d --name your-next-app-instance -p 8080:3000 next-apppan93412 and friends, 2021.