Before you start, make sure you have the following installed:
-
Fork the Repository First, fork the repository to your GitHub account. This will create your own copy of the repository.
-
Clone the Repository Clone the repository you just forked to your local machine:
git clone https://github.com/your-username/hawk-tracker.git
cd hawk-tracker- Add Upstream Remote To keep your repository in sync with the original repository, add the upstream remote:
git remote add upstream https://github.com/gshan-1/hawk-tracker.git- Create a New Branch Before you start working, make sure to create a new branch:
git checkout -b <type>/<desc>Replace <type> with the type of change you are making (e.g., feat, fix, docs, style, refactor, test, chore).
Replace <desc> with the issue description you are working on (e.g., api).
- Install Dependencies Before you start developing, install all dependencies:
pnpm install- Run the Project To ensure you are developing in a properly running environment, start the project:
pnpm devReplace <desc> with the issue description you are working on (e.g., api).
- Globally Link the Project To conveniently use and test your scaffold commands during development, you can globally link your project using pnpm link --global:
pnpm link --globalThis way, you can use your scaffold commands anywhere without having to run them from the project directory each time.
Please follow these development guidelines:
Ensure code is clear and concise. Follow the project's code style and standards (you can use ESLint and Prettier). If you add new features, please write corresponding tests. If you fix bugs, please add tests to prevent them from reoccurring.
Before committing your changes, make sure you have properly formatted and linted the code:
pnpm lint
pnpm formatThen commit your changes:
git add .
pnpm commitReplace <desc> with the issue description you are working on (e.g., api).
Before you submit your changes, make sure your branch is up to date:
git fetch upstream
git rebase upstream/developPush your branch to your own repository:
git push origin <type>/<desc>Replace <desc> with the issue description you are working on (e.g., api).
On GitHub, navigate to your forked repository and click the "Compare & pull request" button. Make sure to describe your changes in detail.