esoftplay / binary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preparation

  • Install docker https://www.docker.com/get-started/
  • Make sure these port are available 80, 81 and 3307
  • install git [optional]
  • install framework [optional]
  • install mysql cli [optional]

How to install framework [optional]

  • run command below
mkdir -p /var/www/html/master
cd /var/www/html/master
git clone https://github.com/esoftplay/master.git ./
docker-compose up -d
mkdir -p /var/www/html/binary
cd /var/www/html/binary
git clone https://github.com/esoftplay/binary.git ./
mysql -u root --password='root' --port 3307 -h 127.0.0.1 -e 'DROP DATABASE IF EXISTS binary'
mysql -u root --password='root' --port 3307 -h 127.0.0.1 -e 'CREATE DATABASE IF NOT EXISTS binary'
mysql -u root --password='root' --port 3307 -h 127.0.0.1 binary < database.sql
curl -s -X POST -F 'code='$(date|md5) http://localhost/tools/repair/change_salt > /dev/null

How to run framework

  • run command below
cd /var/www/html/binary
docker-compose up -d

How to create new project

  • run master or edit docker-compose.yaml to unmark sql service
  • create new folder and cd into this folder
  • run command below
docker run -it -v $(pwd):/home/sites esoftplay/startbinary
mysql -u root --password='root' --port 3307 -h 127.0.0.1 -e 'DROP DATABASE IF EXISTS new_binary'
mysql -u root --password='root' --port 3307 -h 127.0.0.1 -e 'CREATE DATABASE IF NOT EXISTS new_binary'
mysql -u root --password='root' --port 3307 -h 127.0.0.1 new_binary < database.sql
docker-compose up -d
curl -s -X POST -F 'code='$(date|md5) http://localhost/tools/repair/change_salt > /dev/null

How to run project

  • CD into the project folder
  • run docker-compose up -d
  • open url http://localhost/
  • edit the script if necessary

Learn more about the this framework

About


Languages

Language:HTML 39.7%Language:PHP 37.1%Language:CSS 13.7%Language:JavaScript 6.1%Language:Hack 3.4%Language:SCSS 0.1%Language:Dockerfile 0.0%Language:Shell 0.0%