- The dump data can be found in ./mysql-dump/database.sql.
- The database diagram can be found in ./docs/db-diagram.mwb.
- It will be imported after up the containers in Docker.
- To see database data you can log into mariadb doing the following:
- Run command -> docker exec -it db bash -c "mysql -u root -p"
- Type the password (found in .env file)
- Run command -> use microservice;
- Be happy :)
- The port 8000 is being used: http://localhost:8000/
- (GET) /user
- (POST) /transaction
- To make queue works (after insert some transaction), do the following (using Docker):
- Run command -> docker exec -it microservice-app bash -c "sudo -u root /bin/bash"
- Run command -> php artisan queue:work
- Checkout in ./storage/logs the last modified file will contain the message(s).
- To run unit tests, do the following (using Docker):
- Run command -> docker exec -it microservice-app bash -c "sudo -u root /bin/bash"
- Run command -> ./vendor/bin/phpunit