Frontend Repository for Fyle <> Quickbooks Online Integration
-
Download and install Docker desktop for Mac from here.
-
If you're using a linux machine, please download docker according to the distrubution you're on.
-
Navigate into the root folder
-
Copy docker-compose.template.yml as docker-compose.yml and add environment variables
$ cp docker-compose.template.yml docker-compose.yml
-
Setup environment variables in docker_compose.yml
environment: production: "False" FYLE_URL: FYLE_CLIENT_ID: API_URL: http://localhost:8000/api APP_URL: http://localhost:4200 CALLBACK_URI: http://localhost:4200/auth/callback QBO_CLIENT_ID: QBO_SCOPE: QBO_AUTHORIZE_URL: QBO_APP_URL:
-
Build docker images
docker-compose build
-
Run docker containers
docker-compose up -d app
-
To tail the logs a service you can do
docker-compose logs -f app
-
To stop the containers
docker-compose stop app
-
To restart any containers -
docker-compose restart app
-
To run bash inside any container for purpose of debugging or for creating new components, services etc
docker-compose exec app /bin/bash