README.md 852 Bytes
Newer Older
Luke Ward's avatar
Luke Ward committed
1
Full source code for Defend the Web, an online security platform.
Luke Ward's avatar
Luke Ward committed
2

Luke Ward's avatar
Luke Ward committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
## Docker
There is a Docker image with instructions on how to get a test site setup quickly [here](docker).

## Manual setup
* Install nginx, php, mysql and setup
* Install php packages php-mbstring php-sqlite3 php-imagick
* Install redis server
```
unixsocket /tmp/redis.sock
unixsocketperm 755
```
* Clone repo
* Install node + npm + dependencies
```
cd DefendTheWeb
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install
```
* Install composer and install dependencies
```
php composer.phar install --no-dev --optimize-autoloader
```
* Install discount markdown parser and gifsicle
* Import MySQL
```
mysql -u dtwstage -p dtwstage < sql/schema.sql
mysql -u dtwstage -p dtwstage < sql/data.sql
```
* Build project
```
./build.sh
```