- 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,
storybook
andeslint
- For example,
- Exclude all useless components for a production build
- Built-in
.vercelignore
so that you can install dependencies withyarn --production
- Exclude all useless components for a production build
- For example,
storybook
andeslint
- 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
ESLint
rules
- Component Driven User Interfaces
- Built-in Storybook support
yarn
consts.ts
PRODUCT_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 start
docker build -t next-app .
docker run -d --name your-next-app-instance -p 8080:3000 next-app
pan93412 and friends, 2021.