Spring Boot is compatible with Apache Maven 3.2 or above. If you don’t already have Maven installed you can follow the instructions at maven.apache.org.
On Windows, if you don't already have GIT Bash installed, download GIT Bash here
Clone Code in a working directory using
$ https://github.com/mayureshkrishna/pcfaws.git
Once you have cloned the code, you can now run the Spring Boot REST service using
$ mvn clean spring-boot:run
Update your AWS Access keys in the application-dev.properties file.
If you want to run with a specific environment application properties, then make sure to have a property file with environment name. For e.g. application-dev.properties Now you can run with application-dev.properties using:
$ mvn clean spring-boot:run -Dspring.profiles.active=dev
http(s)://<uri>/s3/resources
http(s)://<uri>/dynamo/init
http(s)://<uri>/dynamo/customers
http(s)://<uri>/dynamo/customers/Doe
cf login -a <PCF API URI>
cf create-service aws-s3 standard pcfawss3
cf create-service aws-dynamodb standard pcfawsddb
mvn clean package -Dspring.profiles.active=development
cf push --no-start
cf bind-service pcfaws pcfawss3
cf bind-service pcfaws pcfawsddb
cf start pcfaws