Our project is CodeCraft, the goal of which is to revolutionize Software Engineering with AI. We are developing a web application which utilises multiple different AI models, such as GPT 3.5, StarCode and Code Llama to create a place for developers to perform code analysis, completion, generation and translation.
https://codecraft.1f106c1j1agn.eu-gb.codeengine.appdomain.cloud/
Note that this application is a work in progress and that private API Keys are required to run it. Please contact the developers if you need access to these keys.
Before you begin, ensure you have the following:
- Docker Desktop running on your machine
- A command line terminal running on your machine
- Access to an internet connection
- A web browser running on your machine
- A backend
.envfile containing API Keys from the developers - A file explorer running on your machine (optional)
- In your command line terminal, navigate to the directory in which you would like to clone the repository.
- Once inside your chosen directory, run
git clone https://github.com/TCD-SWENG-Group-18-2024/CodeCraft.giton your terminal to clone the repository. - Using your command line or your file explorer, place your backend
.envfile containing the API Keys in thebackendfolder of the cloned repository. - Using your command line or your file explorer, create a
.envfile in the frontend folder with the following key-value pair:REACT_APP_BACKEND_URL = "http://localhost:8080". If you want to test with the deployed backend, replace this URL with"https://backend.1f106c1j1agn.eu-gb.codeengine.appdomain.cloud/".
- Navigate to the root folder of the cloned repository in your terminal and run the command
docker compose upto build and run the application inside connected docker containers.
- In your web browser, enter the URL
http://localhost:3000to access the application from your browser.
- You can use a Keyboard Interrupt such as
Ctrl + Cto kill the application from your terminal. - Run
docker compose downinside your terminal to deconstruct the containers running the application.
In order to use this method you will need to have GNU Make installed on your local machine. You can download it here.
Once you have Make installed, ensure you have the following:
- A command line terminal running on your machine
- Access to an internet connection
- A web browser running on your machine
- A
.envfile containing API Keys from the developers - A file explorer running on your machine (optional)
- In your command line terminal, navigate to the directory in which you would like to clone the repository.
- Once inside your chosen directory, run
git clone https://github.com/TCD-SWENG-Group-18-2024/CodeCraft.giton your terminal to clone the repository. - Using your command line or your file explorer, place your
.envfile containing the API Keys in thebackendfolder of the cloned repository. - Using your command line or your file explorer, create a
.envfile in the frontend folder with the following key-value pair:REACT_APP_BACKEND_URL = "http://localhost:8080". If you want to test with the deployed backend, replace this URL with"https://backend.1f106c1j1agn.eu-gb.codeengine.appdomain.cloud/".
- Navigate to the root folder of the cloned repository in your terminal and run the command
make allto install all dependencies and run the application.
- In your web browser, enter the URL
http://localhost:3000to access the application from your browser.
- You can use a Keyboard Interrupt such as
Ctrl + Cto kill the application from your terminal.
Before you begin, ensure you have the following installed:
- Python 3 or higher
- React
- Flask
- NPM (Node Package Manager)
Follow these steps to get the application running on your local machine:
-
Open your terminal.
-
Navigate to the
backenddirectory. -
Create a virtual environment:
(Windows)
python -m venv venv(Mac)
python -m venv venv -
Make sure to activate the virtual environment:
(Windows)
venv\Scripts\activate(Mac)
source venv/bin/activate -
Install the Flask App requirements:
(Windows)
pip install -r requirements.txt(Mac)
pip3 install flask -
Now run the command:
(Windows)
python codecraft.py(Mac)
python3 codecraft.pyThe backend should now be running on
http://localhost:8080
-
Open your command line terminal
-
Navigate to the
frontenddirectory -
Install the React App requirements:
npm install -
Now run the command:
npm startThe frontend should now be running on
http://localhost:3000