Coder Social home page Coder Social logo

extrasad / smart-chatter Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 103 KB

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

Python 99.69% Shell 0.31%
python chatbot rest-api graphql

smart-chatter's Introduction

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.

smart-chatter's People

Contributors

dependabot[bot] avatar extrasad avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

smart-chatter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.