so://phie

outline

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

blob: 7da863fcdcb7f4feeaf11ba6807534146b2cf83d (1365 bytes)[doc][blame][raw]

1# Outline

2

3## Installation

4

5The following steps are required in order to serve the website locally.

6

7### Deployment

8

9Define the target hosting site for deployment.

10

11```bash

12$ firebase target:apply hosting outline-website outline-website

13$ firebase deploy --only hosting

14```

15

16<!--

17### Canvas Module Libraries

18

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

20

21```bash

22$ sudo apt-get update

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

24```

25

26Now the node module can be installed.

27

28```bash

29$ npm run build

30```

31

32### Grant Port Binding

33

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

35

36```bash

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

38```

39

40### Grant Certificate Access

41

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

43

44```bash

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

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

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

48```

49-->

50

51## Launch

52

53### Frontend

54

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

56

57```bash

58$ npm run live // Port 80

59$ npm run test // Port 8080

60```