Contributing
We welcome contributions to Next-TS-API! This guide will help you get started with contributing to the project.
Development Setup
-
Fork and clone the repository:
git clone https://github.com/zahinafsar/next-ts-api.git cd next-ts-api
-
Install dependencies:
npm install
-
Build the project:
nx run next-ts-api:build
Development Workflow
-
Create a new branch for your feature/fix:
git checkout -b feature/your-feature-name
-
Make your changes and ensure:
- Code is properly formatted
- Documentation is updated
- Types are properly defined
-
Commit your changes:
git commit -m "feat: add your feature description"
We follow Conventional Commits  for commit messages:
feat:
for new featuresfix:
for bug fixesdocs:
for documentation changeschore:
for maintenance taskstest:
for adding or modifying testsrefactor:
for code refactoring
-
Push your changes and create a Pull Request
Documentation
When making changes, please update:
- TypeScript types and JSDoc comments
- README.md for significant changes
- Documentation pages in
apps/docs
- Example code if relevant
Type Safety
Next-TS-API prioritizes type safety. When contributing:
- Use strict TypeScript settings
- Avoid using
any
or@ts-ignore
- Write proper type definitions
- Test type inference and validation
Pull Request Guidelines
When submitting a PR:
- Title: Use conventional commits format
- Description: Include:
- Purpose of the change
- Summary of the implementation
- Any breaking changes
- Screenshots for UI changes
- Changes:
- Keep changes focused and atomic
- Include tests
- Update documentation
- Review:
- Respond to review comments
- Make requested changes
- Keep the PR updated with the main branch
Getting Help
Need help? You can:
- Open an issue for questions
- Join our discussions on GitHub
- Check existing issues and PRs
Code of Conduct
We follow a standard code of conduct:
- Be respectful and inclusive
- Focus on constructive feedback
- Help others learn and grow
- Maintain a positive environment
License
By contributing, you agree that your contributions will be licensed under the MIT License.
Last updated on