RESTful API for information pertaining to Sales (e.g., buy 2 get 1 free, 20% off)
http://nyu-promotion-service-f17-prod.mybluemix.net/
http://nyu-promotion-service-f17-prod.mybluemix.net/promotions/api
http://nyu-promotion-service-f17.mybluemix.net/
REST API Calls -> @ url http://nyu-promotion-service-f17-prod.mybluemix.net/promotions
We recommend using this REST Client:
https://install.advancedrestclient.com/#/install
- Clone and cd into the Repo
git clone https://github.com/NYU-DevOps-Fall2017-PromotionsTeam/promotions
- Boot the VM
vagrant up && vagrant ssh
- cd into shared /vagrant file
cd /vagrant
nosetests &&
python3 run.py &
behave
Make sure the Server is running by going to http://localhost:5001/
You should probably do this before contributing to the project
kill $(ps aux | grep 'python3 run.py' | grep -v grep | awk '{print $2}')
This script will run tests and clean-up the running server when done
./run_tests.sh
- Joe Zuhusky - jzuhusky@nyu.edu
- Da Ying - dy877@nyu.edu
- Diqing Zhu - dz1120@nyu.edu
- Jincong Zhu - jz2668@nyu.edu