Exchange the results of a web request into a different format
These instructions assume that you've already created a useable database for your application, along with having the required credentials. If you do not need a database, you can ignore the database credentials or set them as placeholders for later. If you need help on creating a database, you can learn how, here.
- Download the git repository
git clone https://github.com/jesse-greathouse/broker
- Change to the broker directory
cd broker
- The easiest way to run broker is with Docker. You will need to install docker on your web host. Check the Official Docker Site on how to install Docker on your host.
- Run the configuration script
bin/configure-docker.sh
docker build -t jessegreathouse/broker .
docker push jessegreathouse/broker
docker run -d -p 3000:3000 \
-e ENV=prod \
-e DEBUG=false \
-e FORCE_SSL=false \
-e DIR="/app" \
-e BIN="/app/bin" \
-e ETC="/app/etc" \
-e OPT="/app/opt" \
-e SRC="/app/src" \
-e TMP="/app/tmp" \
-e VAR="/app/var" \
-e WEB="/app/web" \
-e CACHE_DIR="/app/var/cache" \
-e LOG_DIR="/app/var/logs" \
-e REDIS_HOST=redis \
-e DB_NAME="db_name" \
-e DB_USER="db_user" \
-e DB_PASSWORD="db_password" \
-e DB_HOST="192.168.0.1" \
-e DB_PORT=3306 \
-v $(pwd)/error.log:/app/error.log \
-v $(pwd)/supervisord.log:/app/supervisord.log \
-v $(pwd)/etc/nginx/nginx.conf:/app/etc/nginx/nginx.conf \
--restart no \
--name my-site \
jessegreathouse/broker
- check http://localhost:3000/
docker exec -ti broker run_tests.sh