#QUICKBOOKS INTEGRATION A sample code for quickbooks integration using laravel
##Prerequisites
- Docker
- Your favorite IDE or Text Editor
- Quickbooks developer account
- Quickbooks app
##Installation
- Clone project
git clone https://[email protected]/jjdc/pos-be-inventory.git
- Copy .env.example to .env and change the configs you need
cp .env.example .env
- Run the project
docker-compose up -d
- Install laravel dependencies
Connect to app container
Run composer command
docker-compose exec php sh
composer install
- Setup mysql
Connect to mysql container
This will avoid mysql connection error on laravel connection
docker-compose exec mysql sh
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root'; ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
- Run laravel migration and seeder
Connect to app container
Execute laravel commands
docker-compose exec php sh
php artisan key:generate php artisan migrate php artisan db:seed
Visit http://localhost:8091/
##Docker Container Credentials
DB Host: mysql
DB Port: 3306
DB Name: pos_inventory_db
DB Username: root
DB Password: root
##Important Run this query to be able to connect the app to db
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';
Note: port must be 3306 in order to connect on mysql container this is a little bit confusing on docker-compose settings port which is forwarded to 33062. Port (33062) will be use to connect mysql via sql editor.
Connect to app container
docker-compose exec php sh
Run laravel migration and seeder
php artisan migrate
php artisan db:seed
##Ngrok expose docker container ./ngrok http 8091