Central API
- PHP >= 7.2 with native redis extension installed.
- Redis
- MySQL 5.7 with
utf8mb4
character sets
- Installation
- Download Docker CE: https://docs.docker.com/install/
- Clone this repository and change working directory into this project
- For windows user, you should get use
bash
instead of usingcmd
, give a try with cmder orgit bash
- Setup environment variables:
cp .env.example .env
- Start docker:
./dcp up
- Composer install:
./dcp composer install
- Migration:
./dcp a migrate --seed
- API installation:
./dcp a api:install
- Your project will be available at
localhost:80
, you can easily to change it throughDOCKER_APP_PORT
environment variable.
- Control your development environment with docker
- MySQL run in docker container with port
3306
, however, to prevent port conflict with host machine we using port43306
, you can easily to change it throughDOCKER_MYSQL_PORT
environment variable: - Redis run in docker container with port
6379
, on host machine is7379
(DOCKER_REDIS_PORT
)
- MySQL run in docker container with port
Email: [email protected]
Password: password
Enjoy!