The lottery app. User can get one of the following: money, loyalty points or one thing from predefined list. Money can be sent to user's bank account or converted to the loyalty points. The thing can be sent via regular mail. User can refuse his gift.
- Install Docker with docker-compose
- Clone this repo
- In terminal run
docker-compose run --rm backend composer install
docker-compose run --rm backend /app/init
- Run the migrations
docker-compose run --rm backend yii migrate
- Start container
docker-compose up -d
- Access in browser:
- frontend: http://127.0.0.1:20080
- backend: http://127.0.0.1:21080
- Install and configure Yii framework
- Make migrations for User, Lottery, Gift and Thing models
- Make CRUD for models
- Make lottery front logic
- Make console command for sending money in batch of N transactions
- Make Unit-test for convertation from money to loyalty points
- Cleanup