Thank you for your interest in contributing to DearDiary! To ensure a smooth collaboration process, please follow these guidelines for setting up your development environment and making contributions.
- Development Environment Setup
- Code Style Guidelines
- Commit Message Conventions
- Submitting Pull Requests
- Branching Strategy
- Review and Approval Process
- Licensing Contributions
-
Clone the Repository
git clone https://github.com/your-username/DearDiary.git cd DearDiary
-
Install Dependencies
npm install
-
Set Up Clerk:
-
Create an account at Clerk.dev.
-
Obtain your Frontend API Key and Secret Key.
-
Add these to a .env.local file as follows:
NEXT_PUBLIC_CLERK_FRONTEND_API=<YOUR_FRONTEND_API_KEY> CLERK_API_KEY=<YOUR_SECRET_KEY>
- Run the Project:
The application should be accessible at http://localhost:3000.
npm run dev
Follow the existing coding patterns in the project. Use camelCase for variable and function names. Include comments for complex code sections. Ensure code readability and consistency across the project.
Use the following format for commit messages to ensure clarity and consistency:
- Feature:
feat: add user authentication
- Fix:
fix: resolve login bug
- Docs:
docs: update README with setup instructions
- Style:
style: format code
- Chore:
chore: update dependencies
- Fork and Clone the repository.
- Create a New Branch for your feature or bug fix:
git checkout -b feature/your-feature-name
- Commit Your Changes with clear messages.
- Push to Your Fork:
git push origin feature/your-feature-name
- Open a Pull Request:
- Go to the repository and create a new PR.
- Provide a clear description and link relevant issues.
- Use
feature/feature-name
for new features. - Use
fix/issue-name
for bug fixes. - Ensure PRs are small and focused on a single feature or fix.
- All contributions will be reviewed by maintainers.
- Feedback may be provided; address all comments before final approval.
- Upon review completion, PRs will be merged into the main branch.
By contributing to DearDiary, you agree that your contributions will be licensed under the same license as the project.
Thank you for following these guidelines and for contributing to DearDiary!