so://phie

outline

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

blob: 8620d278abc2773292e65f783cd5481de72ebc61 (1397 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### Deployment

23

24Define the target hosting site for deployment.

25

26```bash

27$ firebase target:apply outline-website outline-website

28$ firebase deploy --only hosting:outline-website

29```

30

31### Grant Port Binding

32

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

34

35```bash

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

37```

38

39### Grant Certificate Access

40

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

42

43```bash

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

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

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

47```

48

49## Launch

50

51### Frontend

52

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

54

55```bash

56$ npm run serve

57```

58

59### Backend

60

61The following command starts the backend server.

62

63```bash

64$ npm run start

65```