Skip to content

SmartChatter is a simple and talking bot, trained to have simple conversations, using chatterbot library. This repository serves the backend for the project, which is based in API support both for REST and GraphQL, created for learning and testing purposes

Notifications You must be signed in to change notification settings

extrasad/smart-chatter

Repository files navigation

SmartChatter

Conventional CommitsCode style: black

Description

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.

Installation

It requires Python 3.6 or higher.

Virtual Environment

Create a virtualenv to isolate package dependencies locally

poetry install

Installing dependencies

To install the dependencies use the Pipfile.

$ pipenv install

Apply migrations

To apply migrations run this command

$ python manage.py migrate

Creating SuperUser

Create superuser by running this

$ python manage.py createsuperuser --email [email protected] --username admin

Running the server

We're now ready to test the API. Let's fire up the server from the command line.

$ python manage.py runserver

Database

We are using Sqlite3 for development related efficacy.

Continuous testing

We are using the package coverage to run the tests.

Read coverage doc: https://coverage.readthedocs.io/en/coverage-4.5.1/

Running the tests

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.

About

SmartChatter is a simple and talking bot, trained to have simple conversations, using chatterbot library. This repository serves the backend for the project, which is based in API support both for REST and GraphQL, created for learning and testing purposes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •