devops-customers-squad / customers

This repository contains the implementation of the customers RESTful Flask service to be used by the eCommerce site.
Apache License 2.0
0 stars 2 forks source link

customers

build codecov build

This repository contains the implementation of the customers RESTful Flask service to be used by the eCommerce site.

Running the service

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

Running the TDD tests

To run the TDD tests for the service, after executing the vagrant ssh and cd /vagrant commands, from the command line run

    nosetests

Running the BDD tests

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

Documentation

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/

Service on the IBM Cloud

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/