about summary refs log tree commit diff
path: root/HACKING.md
blob: 5fa0c63b30b4afe796d5596ba413d68074657146 (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
# Drop into a development environment

The easiest way to get all the dependencies and development tools is to use `guix shell`.
```
guix shell -L .guix -m manifest.scm
```

# Build the C source code

Initialize the meson build directory.
```
meson setup builddir
```
Compile the C source code. Repeat this command everytime you modify the C code.
```
meson compile -C builddir
```

# Run domagi

Run domagi like so:
```
./pre-inst-env python3 -m domagi.domagi <subcommand> ...
```

# Run tests

Run tests.
```
./pre-inst-env python3 -m pytest
```

# Build the website

Build the website using Guix.
```
guix build -L .guix -f .guix/domagi-website.scm
```
Serve it using darkhttpd like below, then navigate to http://localhost:8080/domagi/ on your browser.
```
darkhttpd $(guix build -L .guix -f .guix/domagi-website.scm) --addr 127.0.0.1
```