Thank you for your interest in contributing! 🎉
We welcome all contributions — from bug fixes and documentation improvements to major feature implementations.
Please take a few minutes to review this guide before submitting your contribution.
- Use GitHub Issues for bugs and feature requests.
- Include as much detail as possible.
Please review and follow our Code of Conduct.
By contributing, you agree that your contributions are licensed under the MIT License.
Start by forking this repository to your own GitHub account:
git clone https://github.com/CDLUC3/dmsp_backend_prototype.git
cd dmsp_backend_prototypeCreate a new branch for your feature or bug fix.
git checkout -b feature/your-feature-namePlease use the following naming convention:
feature/your-feature-namefor new featuresbug/your-bug-descriptionfor bug fixesdocs/your-documentation-updatefor documentation changes (e.g. README, comments)chore/your-chore-descriptionfor maintenance tasks (e.g. updating dependencies)
Make your changes in your local repository. Please ensure that your code adheres to the project's coding standards and conventions.
For information on how to set up your development environment, please refer to the README.md.
We use eslint for JavaScript/TypeScript linting. You can run the linter with:
npm run lintWe provide an .editorconfig file to help maintain consistent coding styles across different editors and IDEs. Please ensure your editor is configured to use it. For formatting, we use Prettier. You can format your code with:
npm run formatWe use a CHANGELOG.md file to document all notable changes made to the project. Please update this file with a brief description of your changes, following the existing format.
We use Jest for testing. Please write unit tests for your changes and ensure all tests pass before submitting!
npm run testCommit your changes with a clear and concise commit message with what you've done.
git add .
git commit -m "Add your commit message here"Note that we have a husky precommit hook that will run linting and tests before allowing a commit. Please ensure that your code passes these checks.
If you are in the process of making changes and want to commit changes before you have completely finished, you can run the commit with -n to skip these precommit checks.
Before pushing your changes, make sure your branch is up to date with the main branch. From your branch run:
git pull origin mainPush your changes to your forked repository:
git push origin feature/your-feature-nameGo to the original repository and create a pull request from your forked repository. Follow the template provided and include as much detail as possible including instructions for how to test the change if applicable. Be sure to reference the issue number if your pull request addresses a specific issue!
We may request changes or provide feedback on your pull request. Please address any feedback promptly to help us review and merge your changes.
We are a small team and may not be able to respond immediately, but we will do our best to review your contribution as soon as possible.
Once your pull request is merged, celebrate your contribution to the project! 🎉