This repository contains the implementation of the customers RESTful Flask service to be used by the eCommerce site.
After cloning the repository and setting the current working directory to customers
, from the command line run
vagrant up
After the command finishes running, run
vagrant ssh
followed by
cd /vagrant
To start the service, from the command line run:
honcho start
The app runs on http://0.0.0.0:5000
To run the TDD tests for the service, after executing the vagrant ssh
and cd /vagrant
commands, from the command line run
nosetests
To run the BDD tests for the service, while the app is running on http://0.0.0.0:5000
in one terminal, open a second terminal. In this second terminal, set the current working directory to customers
and after executing the vagrant ssh
and cd /vagrant
commands, from the command line run
behave
To view documentation for the available endpoints, while the app is running on http://0.0.0.0:5000
, open a web browser and navigate to http://0.0.0.0:5000/apidocs/
The URL for the service running on IBM Cloud in dev is https://nyu-customer-service-fall2101-dev.us-south.cf.appdomain.cloud/
The URL for the service running on IBM Cloud in prod is https://nyu-customer-service-fall2101-prod.us-south.cf.appdomain.cloud/