You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Update Core commands.md with new Makefile targets
- Add Quick Start section to README.md
- Improve installation instructions
- Add example commands and usage
(cherry picked from commit 49a099d128dd221f2fc34a9a93fef96085654af3)
Copy file name to clipboardExpand all lines: README.md
+26-21Lines changed: 26 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@
23
23
## Features
24
24
25
25
-**Designed for AI Assistants**: This API was specifically designed to integrate with AI assistants such as custom GPTs, providing them with efficient access to project file structures and contents.
26
-
-**Retrieve Project Structure**: Get a detailed view of the project’s directories and files.
26
+
-**Retrieve Project Structure**: Get a detailed view of the project's directories and files.
27
27
-**Retrieve File Contents**: Access the contents of specific files in the project, with error handling for non-existent paths.
28
28
-**Custom Ignore Patterns**: Utilize `.agentignore` and/or `.gitignore` for specifying which files or directories to exclude from the structure retrieval.
29
29
@@ -60,7 +60,7 @@
60
60
61
61
-**Error Scenarios**:
62
62
63
-
-**500 Internal Server Error**: If there’s a failure in reading the directory structure, such as permission issues or corrupted files, an internal error response will be returned.
63
+
-**500 Internal Server Error**: If there's a failure in reading the directory structure, such as permission issues or corrupted files, an internal error response will be returned.
64
64
65
65
**Example Error Response**:
66
66
@@ -131,7 +131,7 @@
131
131
}
132
132
```
133
133
134
-
-**500 Internal Server Error**: If there’s a failure in reading a file due to permissions, encoding issues, or other OS-level errors.
134
+
-**500 Internal Server Error**: If there's a failure in reading a file due to permissions, encoding issues, or other OS-level errors.
135
135
136
136
**Example Error Response**:
137
137
@@ -185,7 +185,7 @@ The **CodeQuery API** relies on environment variables, defined in an `.env` file
185
185
mv template.env .env
186
186
```
187
187
188
-
3.**Customize the Variables**: Adjust the variables in the `.env` file according to your project’s requirements:
188
+
3.**Customize the Variables**: Adjust the variables in the `.env` file according to your project's requirements:
189
189
190
190
```plaintext
191
191
# Project Settings
@@ -207,9 +207,9 @@ The **CodeQuery API** relies on environment variables, defined in an `.env` file
207
207
### Prerequisites
208
208
209
209
- Docker
210
-
-Docker Compose (optional)
210
+
-Make
211
211
212
-
### Installation Steps
212
+
### Quick Start
213
213
214
214
1.**Clone the repository**:
215
215
@@ -218,29 +218,34 @@ The **CodeQuery API** relies on environment variables, defined in an `.env` file
218
218
cd CodeQuery-API
219
219
```
220
220
221
-
2.**Build the Docker image**:
221
+
2.**Initialize the environment**:
222
222
223
223
```bash
224
-
docker build -t codequery_core .
224
+
make init
225
225
```
226
226
227
-
3.**Set up the environment variables**:
227
+
This will create a `.env` file from the template. Edit it with your settings.
228
228
229
-
Refer to the [Environment Variables](#environment-variables) section for a complete guide on setting and customizing variables. Key variables to review include:
- This command will run the CodeQuery Core component and expose it on port 5001. Ngrok’s local API will be accessible on port 4040 for tunnel management.
244
+
```bash
245
+
make help# Show all available commands
246
+
make stop # Stop the container
247
+
make test# Run tests
248
+
```
244
249
245
250
### Testing the API
246
251
@@ -278,7 +283,7 @@ For extensive testing, refer to the [Testing Guide](docs/testing.md).
278
283
279
284
#### 2. **Setting Up a Self-Hosted Server**
280
285
281
-
- **Description**: For users with a static IP or home server, you can host the Core directly using your ISP’s services, avoiding ngrok or Gateway usage.
286
+
-**Description**: For users with a static IP or home server, you can host the Core directly using your ISP's services, avoiding ngrok or Gateway usage.
282
287
283
288
-**Command**:
284
289
@@ -500,7 +505,7 @@ Conversation Starters:
500
505
501
506
### 1. CoreQuery API (and CodeQueryGPT)
502
507
503
-
The **CoreQuery API** itself is the first use case of the CodeQuery API, and it’s the project you’re currently exploring. It serves as a powerful development tool, integrating with AI assistants (such as the [**CodeQueryGPT**](#codequerygpt--creating-your-own-custom-gpt-for-using-this-api)) to support developers by providing a structured way to query project files, understand code dependencies, and interact with large codebases. This project was developed using a **Test-Driven Development (TDD)** approach to ensure the correctness of the AI-generated code.
508
+
The **CoreQuery API** itself is the first use case of the CodeQuery API, and it's the project you're currently exploring. It serves as a powerful development tool, integrating with AI assistants (such as the [**CodeQueryGPT**](#codequerygpt--creating-your-own-custom-gpt-for-using-this-api)) to support developers by providing a structured way to query project files, understand code dependencies, and interact with large codebases. This project was developed using a **Test-Driven Development (TDD)** approach to ensure the correctness of the AI-generated code.
0 commit comments