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: CONTRIBUTING.md
+29-3Lines changed: 29 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This document contains basic documentation for developing LangPro Annotator.
4
4
5
5
## Before you start
6
6
7
-
You need to install the following software:
7
+
You need to install the following software, *unless* you will be using Docker:
8
8
9
9
- PostgreSQL >= 10, client, server and C libraries
10
10
- Python >= 3.8, <= 3.10
@@ -36,7 +36,28 @@ Each subproject is configurable from the outside. Integration is achieved using
36
36
If you are reading this document, you'll likely be working with the integrated project as a whole rather than with one of the subprojects in isolation. In this case, this document should be your primary source of information on how to develop or deploy the project. However, we recommend that you also read the "How it works" section in the document of each subproject.
37
37
38
38
39
-
### Quickstart
39
+
### Quickstart with Docker
40
+
41
+
```console
42
+
docker compose up -d
43
+
```
44
+
45
+
This will run the frontend and backend applications and watch all source files for changes. To run the backend unittests:
46
+
47
+
```console
48
+
docker compose exec backend pytest
49
+
```
50
+
51
+
To run the frontend unittests:
52
+
53
+
```console
54
+
docker compose exec frontend yarn ng test --no-browsers
55
+
```
56
+
57
+
then open http://localhost:9876 in a browser of choice.
58
+
59
+
60
+
### Quickstart without Docker
40
61
41
62
First time after cloning this project:
42
63
@@ -50,7 +71,12 @@ Running the application in [development mode][8] (hit ctrl-C to stop):
50
71
$ yarn start
51
72
```
52
73
53
-
This will run the backend and frontend applications, as well as their unittests, and watch all source files for changes. You can visit the frontend on http://localhost:8000/, the browsable backend API on http://localhost:8000/api/ and the backend admin on http://localhost:8000/admin/. On every change, unittests rerun, frontend code rebuilds and open browser tabs refresh automatically (livereload).
74
+
This will run the backend and frontend applications, as well as their unittests, and watch all source files for changes.
75
+
76
+
77
+
### Accessing the application
78
+
79
+
You can visit the frontend on http://localhost:8000/, the browsable backend API on http://localhost:8000/api/ and the backend admin on http://localhost:8000/admin/. On every change, unittests rerun, frontend code rebuilds and open browser tabs refresh automatically (livereload).
0 commit comments