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
Copy file name to clipboardExpand all lines: .github/agents/open-library-instructions.md
+59-4Lines changed: 59 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,19 @@
2
2
3
3
This document provides step-by-step instructions for GitHub Copilot agents working on Open Library tasks. Follow these instructions to set up, build, test, and verify changes.
4
4
5
+
> **Note**: If `docker compose` (with space) fails with "unknown command", use `docker-compose` (with hyphen) instead. This is required when using colima or Docker without the buildx plugin.
6
+
5
7
## Repository Structure
6
8
7
9
Open Library is a Python/JavaScript web application built with:
10
+
8
11
-**Backend**: Python 3.12, web.py framework, Infogami wiki system
9
12
-**Frontend**: JavaScript/Vue.js, LESS/CSS, Lit web components
10
13
-**Infrastructure**: Docker Compose for local development
11
14
-**Database**: PostgreSQL, Solr for search
12
15
13
16
### Key Directories
17
+
14
18
-`openlibrary/core/` - Core Open Library functionality
15
19
-`openlibrary/plugins/` - Models, controllers, and view helpers
16
20
-`openlibrary/views/` - Views for rendering web pages
@@ -24,34 +28,40 @@ Open Library is a Python/JavaScript web application built with:
24
28
## Initial Setup
25
29
26
30
### 1. Check Docker Installation
31
+
27
32
```bash
28
33
docker --version
29
-
dockercompose version
34
+
docker-compose version # or "docker compose version" if using Docker Desktop with buildx plugin
30
35
docker run hello-world
31
36
```
32
37
33
38
### 2. Build the Docker Environment
39
+
34
40
```bash
35
41
# From the repository root
36
-
dockercompose build
42
+
docker-compose build # or "docker compose build" if using Docker Desktop with buildx plugin
37
43
```
44
+
38
45
This takes 15-30 minutes on first run. If it times out, re-run the command.
39
46
40
47
### 3. Start the Application
48
+
41
49
```bash
42
50
# Start all services
43
-
dockercompose up -d
51
+
docker-compose up -d # or "docker compose up -d" if using Docker Desktop with buildx plugin
44
52
45
53
# View logs to confirm startup
46
-
dockercompose logs -f --tail=50 web
54
+
docker-compose logs -f --tail=50 web # or "docker compose logs -f --tail=50 web"
47
55
```
48
56
49
57
The application is ready when you see repeating log entries like:
58
+
50
59
```
51
60
infobase_1 | 172.19.0.5:45716 - - [16/Feb/2023 16:54:10] "HTTP/1.1 GET /openlibrary.org/log/2023-02-16:0" - 200 OK
52
61
```
53
62
54
63
### 4. Verify the Application is Running
64
+
55
65
- Visit http://localhost:8080 in your browser
56
66
- You should see the Open Library homepage with "development version" banner
57
67
- Services are available at:
@@ -76,51 +86,60 @@ docker compose run --rm home make lit-components # Lit web components
0 commit comments