Giter VIP home page Giter VIP logo

ll-chatbot-front's Introduction

Lexart Labs - Web Chatbot

Overview

The goal of this tech test is to create a web chatbot with specific features using React, TypeScript, CSS modules, Zustand for global state management, and LocalStorage as a "fake database".

The chatbot should interpret certain terms to initiate a conversation, require a username and password, provide options related to loans, store conversations in a database, and allow exporting conversations in CSV format.

Features

The web chatbot should have the following features:

  • Interpretation of terms: "Hello," "Goodbye," "Good," and "I want" to initiate a conversation thread with the user.

  • Authentication: Require a username and password to continue the conversation.

  • Parameterization of username and password strategies.

  • Loan options: When encountering the term "loan," display three options: "Do you want to apply for a loan?," "Loan conditions," and "Help."

  • Display relevant information and reference links when clicking on the loan options.

  • Conversation termination: When the user uses the term "Goodbye," finish the conversation and store it in the database.

  • Export historic conversations: Create a page to export conversations in CSV format ordered by date.

Links

Process

Built With

The web chatbot project was built using the following technologies and tools:

  • React
  • TypeScript
  • CSS modules
  • Zustand (for global state management)
  • LocalStorage (as a "fake database")

Useful Resources

Here are some useful resources related to the tech stack used in the project:

Local Execution

To run the web chatbot locally, follow the instructions below:

Prerequisites

  • Node.js v16.20 (or higher) should be installed on your machine.

Steps

  1. Clone the repository:

    git clone https://github.com/gabrielh-silvestre/ll-chatbot-front
  2. Navigate to the project directory:

    cd ll-chatbot-front
  3. Install the dependencies:

    npm install
  4. Start the development server:

    npm run dev
  5. Open your web browser and visit http://localhost:5173 to access the web chatbot.

Docker Image

Alternatively, you can use the Docker image to run the web chatbot. Follow the steps below:

Prerequisites

  • Docker should be installed on your machine.

Steps

  1. Pull the Docker image:

    docker image build -t ll-chatbot .
  2. Run a container using the pulled image:

    docker run --rm -p 5173:5173 ll-chatbot
  3. Open your web browser and visit http://localhost:5173 to access the web chatbot.

Author

Feel free to reach out if you have any questions or feedback regarding the project.

ll-chatbot-front's People

Contributors

gabrielh-silvestre avatar

Watchers

 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.