Thank you for taking the time to contribute to our project. Please take a moment to read the following guidelines before contributing:
⚠️ IMPORTANT NotePull Requests having no issue associated with them will not be accepted. Firstly get an issue assigned, whether it's already opened or raised by you, and then create a Pull Request.
-
Open Source Etiquette: If you've never contributed to an open source project before, have a read of Basic etiquette for open source projects.
-
Basic familiarity with Git and GitHub: If you are also new to these tools, visit GitHub for complete beginners for a comprehensive introduction to them.
-
Make sure you have Node.js installed.
-
Make sure you have PNPM installed.
To get started, look at the existing Issues or create a new issue!
Follow these steps to setup RefactorMate on your local machine
-
Fork the project
-
Clone the project to run on your local machine using the following command:
git clone https://github.com/<your_github_username>/RefactorMate.git
-
Get into the root directory
cd .\RefactorMate\
-
Install all dependencies by running
pnpm install
-
Get OpenAI API Key here
Configure API key in
.env
fileVITE_OPENAI_API_KEY = <YOUR_OPENAI_API_KEY>
-
Create your branch
git checkout -b <your_branch_name>
-
Run the Client (Frontend) Start the frontend application:
pnpm run frontend
The client will be accessible at http://localhost:5173 by default.
-
Run the Server (Backend) Start the backend:
pnpm run backend
The server will be running at
PORT:8000
-
Make your changes before staging them.
-
Stage your changes
git add <filename>
or
git add .
-
Commit your changes
git commit -m "<your-commit-message>"
-
Push your changes to your branch
git push origin "<your_branch_name>"
-
Create a PULL REQUEST 💣
Click compare across forks if you don't see your branch
Important
Ensure your PR title conforms to the required format. Use one of the specified prefixes, followed by a colon and a space. Here are the valid prefixes:
build:
chore:
docs:
feat:
fix:
perf:
refactor:
revert:
style:
test:
Example:
feat: add new login feature
Provide a clear description of the changes you made and submit your PR.
-
Open GitHub Desktop 🖥️ 🚀 Launch GitHub Desktop and log in to your GitHub account if you haven't already.
-
Clone the Repository 🔄
- If you haven't cloned the
RefactorMate
repository yet, follow these steps:- Click on the
File
menu in GitHub Desktop. - Select
Clone Repository
. - Choose the
RefactorMate
repository from the list of repositories on GitHub and clone it to your local machine.
- Click on the
- If you haven't cloned the
-
Switch to the Correct Branch 🌿
- Ensure you are on the branch that you want to submit a pull request for.
- To switch branches:
- Click on the
Current Branch
dropdown menu in GitHub Desktop. - Select the desired branch.
- Click on the
-
Make Changes ✏️
- Make your changes to the code or files in the repository using your preferred code editor.
-
Commit Changes 📝
- In GitHub Desktop:
- You'll see a list of the files you've changed. Check the box next to each file you want to include in the commit.
- Enter a summary and description for your changes in the
Summary
andDescription
fields, respectively. - Click the
Commit to <branch-name>
button to commit your changes to the local branch.
- In GitHub Desktop:
-
Push Changes to GitHub ⬆️
- After committing your changes, click the
Push origin
button in the top right corner of GitHub Desktop to push your changes to your forked repository on GitHub.
- After committing your changes, click the
-
Create a Pull Request 📩
- Go to the GitHub website and navigate to your fork of the
RefactorMate
repository. - Click on the
Compare & pull request
button between your fork and the original repository.
- Go to the GitHub website and navigate to your fork of the
-
Review and Submit ✅
- On the pull request page:
- Review your changes.
- Add any additional information, such as a title and description, that you want to include with your pull request.
- Click the
Create pull request
button to submit your pull request.
- On the pull request page:
-
Wait for Review ⏳
- Your pull request will now be available for review by the project maintainers. They may provide feedback or ask for changes before merging your pull request into the main branch of the
RefactorMate
repository.