/workflowcapstone

Primary LanguageJupyter Notebook

Usage notes

All commands are from this directory.

To test app.py

~$ python app.py

or to start the flask app in debug mode

~$ python app.py -d

Go to http://0.0.0.0:8080/ and you will see a basic website that can be customtized for a project.

To test the model directly

see the code at the bottom of model.py

~$ python model.py

To build the docker container

~$ docker build -t iris-ml .

Run the unittests

Before running the unit tests launch the app.py.

To run only the api tests

~$ python unittests/ApiTests.py

To run only the model tests

~$ python unittests/ModelTests.py

To run all of the tests

~$ python run-tests.py

Run the container to test that it is working

~$ docker run -p 4000:8080 iris-ml

Go to http://0.0.0.0:4000/ and you will see a basic website that can be customtized for a project.