README.md 699 Bytes
Newer Older
1 2 3 4 5 6
# Slogans generator

This project is the slogan generator used by LQDN for the donation compaign of years 2017-2018.

## Installation

okhin's avatar
okhin committed
7 8 9
The back-end server require node.js (v6.11.X), npm and cairo. To daemonize the backend, we're going to use pm2.

Here is the installation command for debian based systems:
10 11

```sh
12
apt install nodejs libcairo2-dev libjpeg62-turbo-dev librsvg2-dev libpango1.0-dev libgif-dev build-essential g++
13 14 15
```

```sh
okhin's avatar
okhin committed
16
sudo npm install -g pm2
17 18 19 20
cp config.json.default config.json
npm install
```

Thibaut Broggi's avatar
Thibaut Broggi committed
21 22 23 24 25 26
Testing require further dependencies:

```sh
npm install -g nodeunit
```

27 28
## Run

okhin's avatar
okhin committed
29
We're suggesting the use of pm2 to manage the service
30
```sh
okhin's avatar
okhin committed
31
pm2 start srv.sh --name slogan --watch
32
```