This document provides guidelines on setting up a Next project and following naming conventions for branches and commit messages.
- Clone the project repository using Git:
git clone <repository_url>
- Navigate to the project directory:
cd <project_directory>
- Install the required packages:
npm install
- Run the Next Project:
npm run dev
When creating a new branch for a feature, bug fix, or any other development task, follow this naming convention:
<type>/<short_description>
<type>
: The type of the task (e.g., feature, bug, hotfix, refactor, etc.).<short_description>
: A brief description of the task, using hyphens (-) to separate words.
Examples:
feature/user-login
bug/homepage-crash
refactor/database-utils
For commit messages, follow this format:
<type>: <subject>
<type>
: The type of the commit (e.g., feat, fix, docs, refactor, chore, etc.).<subject>
: A brief description of the change in the commit.
Examples:
feat: Add user authentication
fix: Fix null pointer exception in homepage
docs: Update README with project setup instructions
- Use camelCase for variable and function names (e.g.,
userName
,fetchData()
). - Use PascalCase for class and enum names (e.g.,
UserModel
,UserRole
). - Use snake_case for file names (e.g.,
home.js
,speakers.js
).