Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mosinve/wiretransfer
Middle FullStack skills test task solution (PHP)
https://github.com/mosinve/wiretransfer
balance-transfer laravel php
Last synced: 21 days ago
JSON representation
Middle FullStack skills test task solution (PHP)
- Host: GitHub
- URL: https://github.com/mosinve/wiretransfer
- Owner: mosinve
- Created: 2017-10-08T23:31:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-10T04:27:45.000Z (over 7 years ago)
- Last Synced: 2024-11-11T09:45:55.273Z (3 months ago)
- Topics: balance-transfer, laravel, php
- Language: PHP
- Homepage:
- Size: 875 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
To use this repo you need to have docker installed in your system.
1. Clone or download;
2. At root copy `.env.example` to `.env`;
3. Go to `docker-enviroment` directory;
4. Copy `env-example` to `.env` and edit parameter `DOCKER_HOST_IP` to your Docker host IP;
5. Execute `docker-compose build`;
6. To run docker containers exec `docker-compose up -d`;Next, it's needed to setup Laravel database:
7. Connect to workspace container: `docker exec -it dockerenviroment_workspace_1 bash`;
8. From inside container run `php artisan migrate && php artisan db:seed`;To test functionality, run artisan command `balance:transfer` with parameters:
```
--sum=
--from=,
--to=
```For example: `php artisan balance:transfer --sum=10 --from=1 --to=2`
After completing transfer, appropriate record will appear in the laravel log in `storage/logs`