Project acceptance criteria: https://github.com/evaldasjurgaitis/airport-app/projects
Project kanban board: https://github.com/evaldasjurgaitis/airport-app/projects/1
Prerequisites:
To run Airport app locally need to have: node(v12.18.3), npm(6.14.7), mysql(8.0), JAVA 16 or docker and JAVA 16.
Run application using docker:
- Build airport-backend. (On airport-backend directory in terminal write command
.\gradlew build
orgradlew build
or./gradlew build
it depends on what terminal use.) - Build airport-batch. (On airport-batch directory in terminal write command
.\gradlew build
orgradlew build
or./gradlew build
it depends on what terminal use.) - On airport-ops directory in terminal write command
docker-compose up
- Wait while all images create and containers start run.
- On browser go to http://localhost:3000
- Upload csv files in Admin panel
Run application using local mysql database:
- In mysql database execute
init.sql
script. Script is onairport-ops
module. - Run airport-backend. (On airport-backend directory in terminal write command
.\gradlew bootRun
orgradlew bootRun
or./gradlew bootRun
it depends on what terminal use. ) - Run airport-batch. (On airport-batch directory in terminal write command
.\gradlew bootRun
orgradlew bootRun
or./gradlew bootRun
it depends on what terminal use.) - Run price-service. (On
airport-ops/priceService
directory in terminal write commandjava -jar provider.jar
) - Run airport-ui. (On airport-ui directory in terminal write command
npm start
). - On browser go to http://localhost:3000
- Upload csv files in Admin panel
Files upload works on async mode no need to wait while files will finish uploaded:
- (task_countries.csv approximately will upload per 1s it depends on computer parameters)
- (task_regions.csv approximately will upload per 10s it depends on computer parameters)
- (task_airports.csv approximately will upload per ~14-18 min it depends on computer parameters)