Skip to content

JCarri14/ChatBot-HappyCall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatBot-HappyCall

Chatbot for handling emergency calls

CONTENTS OF THIS FILE

  1. Introduction
  2. Requirements
  3. Configuration

INTRODUCTION

  • Name: HappyCall
  • Authors: Daniel Casado Faulí Josep Roig Torres Joan Carrión Anaya
  • Version: 1.0
  • IDE: Visual Studio Code

REQUIREMENTS

In order to run this project you need to install the following:

CONFIGURATION

In order to run the server do the following:

  • We will be working in a virtual environment, so in case you don't have installed venv or virtualenv, do:

    (Mac OS / Linux)  python3 -m pip install --user virtualenv
    
    (Windows) python -m pip install --user virtualenv
    
  • Once installed, introduce the following commands:

    >> virtualenv env
    >> (Mac OS / Linux)  source env/bin/activate 
       (Windows)         env\Scripts\activate
    
  • Whenever you want to leave the virtual environment do:

    >> deactivate
    
  • Many libraries have been used, in order to have them do the following:

    pip install -r requirements.txt 
    
    IMPORTANT

    Some errors have been found & fixed during the import, but will appear everytime the project is cloned: To avoid them do the following:

    • Copy all content from asyncriorector_fix.py (Windows) CTRL+A CTRL+C
    • Go to env/Lib/twisted/internet/asyncriorector.py and change it with the copy. (Windows) CTRL+A CTRL+V
  • Because we are using MongoDB to store some information, the following commands need to be done:
    In the command line, locate yourself in the /src folder:

    >> cd src
    >> python manage.py makemigrations
    >> python manage.py migrate
    
  • Before running the server, we first need to bind Redis to Local port for messaging purpose

    >> docker run -p 6379:6379 -d redis:5 
    
  • Reached this point, everything should be fine to run the server (Default port: 8000)

    >> python manage.py runserver
    

    OR you want to have it in any other port:

    python manage.py runserver <server_port> 
    
  • Finally, to access the ui: