A web-based drawing app
git clone git://soophie.de/outline
blob: 1c28ad5f1c9af07f2ed59809ebf8068398151d7b (1730 bytes)[doc][blame][raw]
1
# Outline3
## Installation5
The following steps are required in order to serve the website locally.7
### Deployment9
Define the target hosting site for deployment.11
```bash12
$ firebase target:apply hosting outline-website outline-website13
$ firebase deploy --only hosting:outline-website14
```16
The *firebase.json* should look like this:18
```json19
{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
```41
<!--42
### Canvas Module Libraries44
The following libraries are required in order to build and execute the *canvas* module properly.46
```bash47
$ sudo apt-get update48
$ sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev49
```51
Now the node module can be installed.53
```bash54
$ npm run build55
```57
### Grant Port Binding59
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`.61
```bash62
$ sudo setcap 'cap_net_bin_service=+ep' `which node`63
```65
### Grant Certificate Access67
The following commands enables node to read from the directories and files generate from *Certbot*.69
```bash70
$ sudo chmod 0755 /etc/letsencrypt/{live,archive}71
$ sudo chmod 0640 /etc/letsencrypt/live/<domain>/privkey.pem72
$ sudo chown -R <user>:<user> /etc/letsencrypt/live/<domain>/privkey.pem73
```74
-->76
## Launch78
### Frontend80
The following command starts the *Firebase Hosting* service, which provides the frontend.82
```bash83
$ npm run live // Port 8084
$ npm run test // Port 808085
```