A super powerful NextJS boilerplate developed following the Feature driven pattern.
- Always write clean code
- Think before coding
- Code has heart
- Ready to teach each other
- Responsibility for work
- Actively discuss
https://nextjs-core-project.vercel.app/
Here're some of the project's best features:
- Clean folder structure
- High scalability
- Feature driven architecture
- Multilingualism does not change routes
- Validate ENV before build
- Validate branch and commit before commit code
- Support Storybook
- Support Unit Test
- Bla bla bla feature...
- Analyze production error messages
.
βββ public
βΒ Β βββ images
βββ scripts
βββ src
βββ __generated__ (GraphQL types auto generate)
βββ __test__
βΒ Β βββ setup
βββ adapters
βββ components
βΒ Β βββ common
βΒ Β βββ features
βββ mocks
βββ pages
βΒ Β βββ api
βΒ Β βΒ Β βββ ping
βΒ Β βββ permission
βΒ Β βββ route
βββ services
βΒ Β βββ apollo
βΒ Β βββ resolvers
βΒ Β βββ type-defs
βββ stores
βΒ Β βββ admin
βΒ Β βββ global
βΒ Β βββ user
βββ styles
βββ utils
βββ constants
βββ helpers
Must create branch follow below rules:
- build
- chore
- ci
- docs
- feat
- fix
- perf
- refactor
- revert
- style
- test
Example:
feat: first commit
Must create branch follow below rules:
- feat/
- feedback/
- hotfix/
- revert/
- reset/
- force/
- refactor/
- fix/
Example:
git checkout -b feat/feature-a
Note: Underscore to be not allow!!!
1. Clone the project
git clone https://github.com/truongdn-it/nextjs-boilerplate
2. Go to the project directory
cd nextjs-boilerplate
3. Install dependencies
npm install
4. Start the server
npm run dev
make build-development
make start-development
make build-staging
make start-staging
make build-production
make start-production
CONTRIBUTING
Technologies used in the project:
- NextJS
- Antd Design
- React Query
- Zustand
- Commit lint
- Eslint
- Prettier
- Storybook
- Vitest
- Apollo Server
- Apollo Client
- Sentry
This project is licensed under the MIT
Donate me for crypto (USDT)
BEP20 Wallet: 0xbb861e0bd84af04cf370bcf8227537344500bd0a
