One can enter the URL of any Public Repository (and Private Repository of his/her own account) and get suggestions, summary related to the codebase.
- Python - Flask, Gemini API
- React - Chakra UI, Github Token
- Fork and Clone the repository.
- Move to backend folder, create and activate the Virtual Environment :
cd backend
virtualenv env
env/Scripts/activate
- Install the requirements :
pip install -r requirements.txt
- Make a .env file and add
GEMINI_API_KEY = '<API KEY VALUE>'
- Change the directory of cloning, by changing the value of
temp_dir = '<path>'
(or add an emptycloned_dir
named folder in the backend folder) in Line 19 of app.py in backend, add the path of directory where the cloned folders should be. - Run the Flask server :
python app.py
- Move to the frontend directory.
- Install the packages by :
yarn
- Make a .env file in frontend folder and add the value of Github Token
VITE_APP_GITHUB_TOKEN = '<GITHUB TOKEN>'
. - Run the project :
yarn run dev
- Keep both the servers running, and visit
localhost:5173
to add the input. - Before entering The Repository URL in the input, please ensure that it is not too large or not containing too many files.
![image](https://private-user-images.githubusercontent.com/79015420/296638579-f383f37a-b972-45ac-9ee9-c7e288594141.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMxNTYwNTEsIm5iZiI6MTcyMzE1NTc1MSwicGF0aCI6Ii83OTAxNTQyMC8yOTY2Mzg1NzktZjM4M2YzN2EtYjk3Mi00NWFjLTllZTktYzdlMjg4NTk0MTQxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA4VDIyMjIzMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThkODQzMWQ0NTA4ZmE2OTdlMjE3Y2Q4ZjY3NzY1M2I4MDU1ZTBlM2YzZmJjY2NmNTBlOGIxNTMwNWNiY2ZiYWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1SNmGVqVU5VvdHysE9N785FIHoRFdm3Um11MXNP1xwk)