so://phie

outline

A web-based drawing app
git clone git://soophie.de/outline

blob: 25e9bc6461fc1d21e44fb2abea1bd63b03dd7c81 (1215 bytes)[doc][blame][raw]

1# Outline

2

3## Installation

4

5The following steps are only required for backend.

6

7### Canvas Module Libraries

8

9The following libraries are required in order to build and execute the *canvas* module properly.

10

11```bash

12$ sudo apt-get update

13$ sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

14```

15

16Now the node module can be installed.

17

18```bash

19$ npm run build

20```

21

22### Grant Port Binding

23

24The following command makes it for node possible to bind a port beneath *1024*. The command must be execute after every single `apt-get update`.

25

26```bash

27$ sudo setcap 'cap_net_bin_service=+ep' `which node`

28```

29

30### Grant Certificate Access

31

32The following commands enables node to read from the directories and files generate from *Certbot*.

33

34```bash

35$ sudo chmod 0755 /etc/letsencrypt/{live,archive}

36$ sudo chmod 0640 /etc/letsencrypt/live/<domain>/privkey.pem

37$ sudo chown -R <user>:<user> /etc/letsencrypt/live/<domain>/privkey.pem

38```

39

40## Launch

41

42### Frontend

43

44The following command starts the *Firebase Hosting* service, which provides the frontend.

45

46```bash

47$ npm run serve

48```

49

50### Backend

51

52The following command starts the backend server.

53

54```bash

55$ npm run start

56```