This is a deployeable PHP application contained with Docker Compose.
- Implement CRUD operations with ActiveRecord.
- Implement Redis with refresh token strategy.
- Add unit test.
- Include API documentation.
- Install Docker Compose on system.
- Clone this repo on local machine and navigate into directory.
- Build and run application:
docker-compose up - App will be served at http://localhost:8080
Current container is provisioned with Xdebug ready to use. The only local setup needed is the port's binding and interfaces. In order to do it only run this command as follows depending on your local OS:
Mac OSX:
sudo ifconfig en0 alias 10.254.254.254 255.255.255.0
Linux OS:
sudo ip addr add 10.254.254.254/24 brd + dev eth0 label eth0:1
To get access to container's internal bash terminal simply run:
docker exec -it users-service /bin/bash
- Silex - PHP micro-framework.
- PHP ActiveRecord - Open source ORM library based on ActiveRecord pattern.
- Docker - Used to build and run application container and its services.
- MySQL - Open source relational DBMS.
- Redis - Open source in-memory data structure store.
This project uses SemVer for versioning.