Skip to content

resultakak/teknasyon-php-challenge

Repository files navigation

Mobile Application Subscription Management

Mobile applications are able to make in-app-purchase purchases, verification and current subscription control using this API.

See Documentation.

Codacy Badge

# Mock Live
curl -I https://mock-teknasyon.resul.me/

# API Live
curl -I https://api-teknasyon.resul.me/

Prerequisites

Requirements

  • PHP >= 7.4.21
  • Phalcon >= 4.1.0
  • Git >= 2.32.0
  • Docker 20.10.7
  • Docker Compose 1.29.2

Docker Total Size (6 Images) 1.12 GB

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/

Links