Requirements:
- MySQL 5 or higher with a schema 'acms'
- Java 8 or higher
- Maven 3 or higher
- Docker 3.3 or higher
How to run in Docker:
In directory src/main/resources/ copy file application-prod.properties.example to the same directory with a name application-prod.properties
- In application-prod.properties file specify your MySQL username and password
- Execute '.\mvnw package -DskipTests=true' in the root repository directory. (Windows Env)
- 'docker image build -t image-name .'
- 'docker container run -p 3305:3306 --name mysqldb --network acms-mysql -e MYSQL_ROOT_PASSWORD=your_mysql_password -e MYSQL_DATABASE=acms -d mysql:8'
- 'docker container run -d --name container-name -p 8080:8080 --network acms-mysql --link mysqldb:mysql image-name'
- Run Postman and import Collection 'Air Companies Management.postman_collection.json' from project root directory