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 NPM 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
npm install
-
Get OpenAI API Key here
Configure API key in
index.ts
const API_KEY:string="YOUR_OPENAI_API_KEY"
-
Create your branch
git checkout -b <your_branch_name>
-
Run the Client (Frontend) Start the frontend application:
npm run frontend
The client will be accessible at http://localhost:5173 by default.
-
Run the Server (Backend) Start the backend:
npm 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