so://phie

outline

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

blob: 1c28ad5f1c9af07f2ed59809ebf8068398151d7b (1730 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:outline-website

14```

15

16The *firebase.json* should look like this:

17

18```json

19{

20 "hosting": {

21 "target": "outline-website",

22 "public": "public",

23 "ignore": [

24 "firebase.json",

25 "**/.*",

26 "**/node_modules/**"

27 ],

28 "rewrites": [{

29 "source": "/app",

30 "destination": "/app.html"

31 },

32 {

33 "source": "**",

34 "destination": "/index.html"

35 }

36 ]

37 }

38}

39```

40

41<!--

42### Canvas Module Libraries

43

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

45

46```bash

47$ sudo apt-get update

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

49```

50

51Now the node module can be installed.

52

53```bash

54$ npm run build

55```

56

57### Grant Port Binding

58

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

60

61```bash

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

63```

64

65### Grant Certificate Access

66

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

68

69```bash

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

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

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

73```

74-->

75

76## Launch

77

78### Frontend

79

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

81

82```bash

83$ npm run live // Port 80

84$ npm run test // Port 8080

85```