Amazin Kart is simple java project for applying applying discounts to the prducts on runtime.
- Fork this project
mvn clean install
mvn exec:java -Dexec.mainClass=com.forbes.amazinkart.AmazinKart -Dexec.args="prmotionsSetA"
mvn exec:java -Dexec.mainClass=com.forbes.amazinkart.AmazinKart -Dexec.args="prmotionsSetB"
- All the existing promotions are defined in file
promotion.json
under resources folder in the specific json format. - For intorducing new promotions just add entry of promotion in the above file.
- Output file is by default written to
/target/classes/output.json
- This file can be overwritten at
src/main/resources/config.properties
underoutputFilePath
property