All commands are from this directory.
~$ 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.
see the code at the bottom of model.py
~$ python model.py
~$ 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
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
~$ 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.