blob: 0a7c4fffb8392797bcc9b6abda825f56b3a1325d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Various development notes
## Backend
Use the doc in the README.md
Run server with:
```shell
export AUTHLIB_INSECURE_TRANSPORT=1
export FLASK_ENV=development
flask run
```
All ActivityPub code (inbound or outbound) needs to have the celery worker running.
## Unittests (backend)
```shell
export CONFIGTEST=configtest.py
pytest
```
## Unittests (frontend)
None yet
## Frontend
Create `front/config/local.json` with:
```json
{
"target": "http://127.0.0.1:5000/"
}
```
Also comment `SERVER_NAME` and `BASE_URL` in `config.py` when in dev.
Run the front with: `cd front && npm run dev`
Then access to the front on: http://localhost:8081
The backend will be automatically proxified.
## Linters
Backend:
```
flake8 .
black .
```
Frontend:
```
npm run lint
```
|