SmartChatter is a project to practice rest and graphql implementation of the library chatterbot. Just fork and add your custom .yml file with the train data and start using it.
It requires Python 3.6 or higher.
Create a virtualenv to isolate package dependencies locally
poetry install
To install the dependencies use the Pipfile.
$ pipenv install
To apply migrations run this command
$ python manage.py migrate
Create superuser by running this
$ python manage.py createsuperuser --email [email protected] --username admin
We're now ready to test the API. Let's fire up the server from the command line.
$ python manage.py runserver
We are using Sqlite3 for development related efficacy.
We are using the package coverage to run the tests.
Read coverage doc: https://coverage.readthedocs.io/en/coverage-4.5.1/
Run the unit tests with this command.
$ coverage run manage.py test -v 2
To see coverage report,in a html presentation,about the results of the test, run this command
$ coverage html
That command will generate a folder named "htmlcov", open it, look in it for the "index.html" file and open it in a browser to check the results.