- Download and install the latest version of Java Development Kit (JDK) from the Oracle website.
- Follow the installation instructions for your operating system.
- Verify the installation by running
java -version
in your terminal or command prompt.
- Download Apache Maven from the Maven website.
- Follow the installation instructions for your operating system.
- Verify the installation by running
mvn -version
in your terminal or command prompt.
- Download and install Git from the Git website.
- Follow the installation instructions for your operating system.
- Verify the installation by running
git --version
in your terminal or command prompt.
- Define the path to your projects folder in
application.yml
:projectsDir: /path/to/projects
- Create a
config.yaml
file in each project's directory with the following structure:workingDir: /path/to/workingDir systemDescription: Description of the system restrictToWorkingDir: true/false executeCommands: true/false
workingDir
: Path to the working directory. This is where the files you want ChatGPT to manage are located.systemDescription
: A brief description of your setup, like specific tools you installed and ChatGPT should use.restrictToWorkingDir
: If true, restricts file api operations to the working directory.executeCommands
: If true, allows command execution.
- Create an
apikey.txt
file in each project's directory containing a UUIDv4 string.- You can generate a UUIDv4 using various online tools or libraries.
- Tell ChatGPT about this API Key once you use it (it will ask).
- Modify the
application.yml
file to suit your environment and preferences. - Ensure the
projectsDir
path is correctly set to the location where your projects are stored. - Other configurations can be added as necessary.
- Navigate to the project root directory.
- Run the application using Maven Wrapper:
./mvnw spring-boot:run
- Java Not Found: Ensure Java is installed and the
JAVA_HOME
environment variable is set correctly. - Maven Not Found: Ensure Maven is installed and the
MAVEN_HOME
environment variable is set correctly. - Git Not Found: Ensure Git is installed and added to your system's PATH.
- Configuration Errors: Double-check the
application.yml
andconfig.yaml
files for correct syntax and paths. - Port Issues: Ensure required ports are open and not used by other applications.
- File Permissions: Ensure the application has read/write permissions for the necessary directories.
- Logs: Check the application logs for detailed error messages and stack traces.