A web-based drawing app
git clone git://soophie.de/outline
blob: 8620d278abc2773292e65f783cd5481de72ebc61 (1397 bytes)[doc][blame][raw]
1
# 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
### Deployment24
Define the target hosting site for deployment.26
```bash27
$ firebase target:apply outline-website outline-website28
$ firebase deploy --only hosting:outline-website29
```31
### Grant Port Binding33
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`.35
```bash36
$ sudo setcap 'cap_net_bin_service=+ep' `which node`37
```39
### Grant Certificate Access41
The following commands enables node to read from the directories and files generate from *Certbot*.43
```bash44
$ sudo chmod 0755 /etc/letsencrypt/{live,archive}45
$ sudo chmod 0640 /etc/letsencrypt/live/<domain>/privkey.pem46
$ sudo chown -R <user>:<user> /etc/letsencrypt/live/<domain>/privkey.pem47
```49
## Launch51
### Frontend53
The following command starts the *Firebase Hosting* service, which provides the frontend.55
```bash56
$ npm run serve57
```59
### Backend61
The following command starts the backend server.63
```bash64
$ npm run start65
```