A web-based drawing app
git clone git://soophie.de/outline
1
# Outline1
\ No newline at end of file1
# Outline3
## Installation5
The following steps are only required for backend.7
### Canvas Module Libraries9
The following libraries are required in order to build and execute the *canvas* module properly.11
```bash12
$ sudo apt-get update13
$ sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev14
```16
Now the node module can be installed.18
```bash19
$ npm run build20
```22
### Grant Port Binding24
The following command makes it for node possible to bind a port beneath *1024*. The command must be execute after every single `apt-get update`.26
```bash27
$ sudo setcap 'cap_net_bin_service=+ep' `which node`28
```30
### Grant Certificate Access32
The following commands enables node to read from the directories and files generate from *Certbot*.34
```bash35
$ sudo chmod 0755 /etc/letsencrypt/{live,archive}36
$ sudo chmod 0640 /etc/letsencrypt/live/<domain>/privkey.pem37
$ sudo chown -R <user>:<user> /etc/letsencrypt/live/<domain>/privkey.pem38
```40
## Launch42
### Frontend44
The following command starts the *Firebase Hosting* service, which provides the frontend.46
```bash47
$ npm run serve48
```50
### Backend52
The following command starts the backend server.54
```bash55
$ npm run start56
```
4
"description": "Draw with friends together",5
"main": "index.js",6
"scripts": {7
"build": "npm i",8
"build-linux": "npm i --unsafe-perm=true --allow-root",9
"serve": "firebase serve --only hosting:outline-website --port 80",10
"start": "node index",11
"deploy": "firebase deploy --only hosting:outline-website",12
"require": "npm i -g windows-build-tools",13
"require-linux": "apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev"7
"build": "npm i --unsafe-perm --allow-root",8
"serve": "firebase serve --only hosting --port 80",9
"start": "node index"10
},11
"repository": {12
"type": "git",