# price-updater-app



## Getting started

### Pre-requisite
- Docker is already installed in your system.
- Docker compose is already installed in your system.

### Setup Local Environament
- Checkout the project repository
- Goto the project root directory
- extract the following .zip files.
    - src/vendor.zip
    - src/css/css.zip
    - src/js/js.zip
    - src/inclues/swiftMailer.zip
- Create docker volume for the database. Run `docker volume create gss-data`.
- Run `docker-compose up -d gss-service`.
- Wait docker to finish downloading required images and intalling updates in the image or container.

### Setup Local Database
- Goto `http://localhost:5050` to access phpmyadmin in the docker.
- Login using the `root` or `gssUser` and copy the set password in the `docker-compose.yml` file.
- Select the database name: `gss_price_updater` and select `import`.
- Select the file in the root directory `/dump/gss-price-updater.sql.zip`, then click on Import.

