Git Product home page Git Product logo

dwtcourses / chatbot-covid-frontend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mariagrandury/chatbot-covid-frontend

0.0 2.0 0.0 1.18 MB

Chatbot that understands and answers questions (in Spanish) about the COVID-19: symptoms, prevention, regulation, the situation in Spain. Don't hesitate to chat with AURORA!

Home Page: https://d3g60fts6ncstu.cloudfront.net/

JavaScript 5.15% TypeScript 66.10% HTML 6.01% CSS 22.74%

chatbot-covid-frontend's Introduction

Chatbot COVID-19: Frontend

AURORA is a chatbot that understands and answers questions (in Spanish) about the COVID-19: symptoms, prevention, regulation, the situation in Spain. Don't hesitate to chat with AURORA!

drawing

Motivation

In March 2020, a virus appeared to seriously threaten our health. These were days of widespread confusion, uncertainty, and doubt. The infoxication or generation of many answers to these doubts by the media and social networks (many of which turned out to be false) caused even more unrest in the Spaniards.

At that precise moment, the idea of developing this chatbot was born to generate certainties and a sense of control in the citizens based on truthful information from the Ministry of Health.

With AURORA, a virtual assistant that solves doubts about the COVID-19, it is intended that citizens exercise control over what is in their hands to protect themselves and their loved ones.

Technologies

The frontend of the chatbot was developed using:

  • Angular

  • Amazon CloudFront

  • Amazon S3

Angular CLI

This project was generated with Angular CLI version 8.1.2.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

CloudFront

First you have to build the project and create an Amazon S3 Bucket with the 22 files of dist/. Set Permissions/Block public access to OFF. Then in the Overview select all the files and Actions/Make public.

To create a CloudFront web distribution:

Sign in to the AWS Management Console and open the CloudFront console.

Choose Create Distribution.

Select a delivery method: in the Web section, choose Get Started.

Specify settings for the distribution:

  • Origin Domain Name. The DNS domain name of the Amazon S3 bucket from which you want CloudFront to get objects for this origin, for example, awsexamplebucket.s3.us-west-2.amazonaws.com

  • Origin ID: default.

  • Restrict Bucket Access: YES. Create a New Identity. Yes, Update Bucket Policy.

  • Default Root Object: index.html

  • Create Distribution.

  • Wait till the value of the Status column for your distribution changes from InProgress to Deployed.

  • The CloudFront url is the Domain Name in the General tab of the distribution.

New project

If you clone this repository, you have to update the following:

  • Title and favicon in index.html

  • Favicon in assets/

  • Url of dialogflow-client AWS Lambda in chat.service.ts

  • OnInit and error messages in chat-dialog.component.ts

  • Name and favicon in chat-dialog.component.html

  • Style in chat-dialog.component.css

Gracias

chatbot-covid-frontend's People

Contributors

mariagrandury avatar

Watchers

James Cloos avatar  avatar

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.