- node(versions 14.x.x or later)
- npm(versions 5.x.x or later)
Linter tools setup
Git hooks(pre-commit, commit-msg)
Enviroment to tests
Internacionalization
Modules style
Generators
Clone the project:
git clone https://github.com/MarcosSantosDev/nextjs-playground.git
Install the dependencies:
npm install
To run the application in development mode, run the command below:
npm run dev
Open http://localhost:3000 with your browser to see the result.
To generate the application build, run the command below:
npm run build
To run the application on top of the build, in production mode, run the command below:
npm run start
To run the integration and unit tests, run the following command in your terminal:
npm run test
To run
and watch
the integration and unit tests, run the following command in your terminal:
npm run test:watch
To run your end-to-end tests and view the results in the terminal, run the following command in your terminal:
npm run ci:e2e:headless
To open and run your end-to-end tests in the cypress playground, run the following command in your terminal:
npm run ci:e2e
- Clone this repository.
- Create a branch:
git checkout -b <type>/<branch_name>
- Make your changes and confirm them:
- Common commit message:
git commit -m "<type>: message"
- To commit with commitizen(commit message formatter):
npm run commit
- Push to original branch:
git push
- Create the pull request to
development
branch.