A microservices-demo service that provides shopping carts for users.
This build is built, tested and released by travis.
Checkout the API Spec here
Platform : Ubuntu 16.04
Setup Mongo DB
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo service mongod start
Validate mongodb
cat /var/log/mongodb/mongod.log
Setup Carts App
apt-get install -yq openjdk-8-jre-headless openjdk-8-jdk-headless
sudo apt-get install maven -yq
cd carts/
mvn compile
mvn test
mvn -DskipTests package
Run Carts App
mvn spring-boot:run
or
ls target/
java -jar target/carts.jar
mvn -DskipTests package
GROUP=weaveworksdemos COMMIT=test ./scripts/build.sh
./test/test.sh < python testing file >
. For example: ./test/test.sh unit.py
mvn spring-boot:run
curl http://localhost:8081/health
curl http://localhost:8081
GROUP=weaveworksdemos COMMIT=test ./scripts/push.sh