- Install Node.js >=14.18
- Install Yarn
- Working knowledge of React and Next.js.
First, install node_modules
:
yarn install
Second, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.
.
├── README.md # README file
├── .circleci # Circle CI config
├── .github # GitHub folder
├── .husky # Husky configuration
├── .vscode # VSCode configuration
├── .next # Next build folder
├── coverage # Test coverage folder
├── docs # Documentation folder
├── e2e # End-to-end testing
├── nginx # Nginx configuration
├── public # Public assets folder
├── src
│ ├── __mocks__ # Mocks for testing
│ ├── __tests__ # Global tests
│ ├── assets # Fonts, styles, images,...
│ ├── components # All components in project
│ │ │── common # Common components: button, seo, 404
│ │ │── forms # Form components
│ │ │── icons # Icons components
│ │ │── layouts # Header, Footer, Menu,...
│ │ │── modules # Component of pages
│ ├── contexts # Layouts components
│ ├── data # Layouts components
│ ├── layouts # Layouts components
│ ├── pages # Next JS Pages
│ ├── settings # Settings of project/website
│ ├── types # TS types
│ └── utils # Utility functions
├── tailwind.config.js # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
└── Dockerfile # Dockerfile
└── docker-compose.yml # Docker compose
If we need to do a feature, we branch from
main
. When feature is done, we rebasemain
before create a PR againstmain
.
Example git flows:
- Create new branch base on
main
git checkout -b feature/AONJ-73-xxx
- Do your task and commit with
git add -A && yarn cm
- Pull latest version of
main
and rebase
git checkout main && git pull && git checkout - && git rebase main
- Resolve conflict if needed and push code to origin
git push origin feature/AONJ-73-xxx
##.END.