Skip to content

Latest commit

 

History

History
91 lines (46 loc) · 1.52 KB

README.rst

File metadata and controls

91 lines (46 loc) · 1.52 KB

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 ai-capstone-tokn .

Check that the image is there.

~$ docker image ls

You may notice images that you no longer use. You may delete them with

~$ docker image rm IMAGE_ID_OR_NAME

And every once and a while if you want clean up you can

~$ docker system prune

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 ai-capstone-tokn

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