Mobile Application Subscription Management

Mobile Application Subscription Management

View the Project on GitHub resultakak/teknasyon-php-challenge

Install

Prerequisites

Requirements

Add to hosts file:

127.0.0.1	api.local
127.0.0.1	mock.local

Install

curl -s https://raw.githubusercontent.com/resultakak/php-challenge/develop/install.sh | bash

or

git clone https://github.com/resultakak/php-challenge.git
cd php-challenge
cp example.env .env
docker build -t resultakak/php:mavi ./build/php
docker-compose up -d --build
docker-compose exec worker make setup
docker-compose exec mock make setup
docker-compose exec api make setup

Uninstall


curl -s https://raw.githubusercontent.com/resultakak/php-challenge/develop/remove.sh | bash

or


docker-compose down
docker system prune -a --volumes
rm ./src/api/logs/*.log
rm ./src/api/composer.lock
rm -rf ./src/api/vendor
rm ./src/mock/logs/*.log
rm ./src/mock/composer.lock
rm -rf ./src/mock/vendor
rm ./src/worker/*.log
rm ./src/worker/storage/logs/*.log
rm -rf ./src/worker/vendor
rm ./src/worker/composer.lock
rm -rf ./build/mysql/data/


Index