AppTCO
Example project of a supplier payments application using Laravel/Docker (Laradock), Bootstrap and jQuery.
In this project, the app and the api are in separate containers.
Requirements
- This project was made using Docker, to install this follow the steps here.
- You must register on the Mailtrap website to insert your MAIL_USERNAME and MAIL_PASSWORD in the App's .env (app_tco/tco/.env).
Components
The components used in this project/image are:
- docker-compose version 1.18.0
- laravel 5.7.27
- laradock lastest version
- php 7.2
- mysql 5.7
- bootstrap 4.1.3
- jquery 3.3.1
- jquery.mask 1.14.15
- fontawesome v5.7.2
- PHPUnit
- GraphQL
- Mailtrap
Installation
To install, simply run the install.sh script, remembering that you need docker-compose installed.
During installation, the following actions are performed:
- Start Docker (Nginx/MySQL/Workspace)
- Create a new database (remove if it exists)
- Clear Laravel configuration cache (App/API)
- Clear Laravel cache (App/API)
- Generates a new Laravel key (App/API)
- Runs Laravel migrations (App/API)
- Run Laravel seeds (App/API)
- Displays the status of Docker containers
- Run PHPUnit tests (App/API)
App Controls
Two scripts (start.sh/stop.sh) were created to control Docker.
App Access
These are the main accesses to the app:
- AppTCO
- AppTCO API
- PHPMyAdmin
- GraphQL