Giter VIP home page Giter VIP logo

support-chat's Introduction

Hey :)


René is a curious person who loves to learn and share.

He's also a technology enthusiast, loves video games, music, rainy days and connecting with people :)

  • 💬 Ask me about » anything, I'd love to chat.
  • Fun fact » I'm pluviophile

support-chat's People

Contributors

renejfc avatar

Stargazers

 avatar

Watchers

 avatar

support-chat's Issues

Responsive ready.

  • Should work smoothly in most major browsers
  • Should be responsive across devices

Beautiful UI.

  • Setup styles workflows.
  • Global styles.
  • Style tokens
  • Mockup

Testing

Needs #4

  • Unit testing.
    • Partially.
  • Component testing.
    • Partially.
  • E2E testing.
    • Partially.

Auth (login)

Login page with text fields for user and password and a button to submit.

  • Should not send an HTTP request if either of the fields are empty.
  • Login returns a session token that needs to be stored and used for the rest of endpoints
  • If the session token is already stored, the project should redirect to chat.
  • Must have a distinct URL from the chat page.

API Definition

POST /login
  Request:
    { “user”: “USERNAME”, “password”: “PASSWORD” }    // Valid credentials are admin / admin
    Header: Content-Type: application/json

  Response:
    200 OK: { “session_id”: “TOKEN” }
    401 UNAUTHORIZED: no body

Documentation

  • Project setup instructions
  • Decision making process
  • Structured docs
  • Extra comments

Chat

Chat page to interact with a bot.

Page with an input field for the user to send messages and the history of all the messages sent
and received so far.

  • Distinct URL from the login page.
  • Logout button.
  • Must not send HTTP requests if the message field is empty.
  • Must redirect to the login page if the session token does not exist or one of the queries
    returns a 401 Unauthorized.
  • Upon entering, the page should show the welcome message as a message from the bot.
  • Bot messages appearing one by one and with animations and/or a typing animation (optional)

API Definition

GET /getWelcomeMessage
  Request:
    Header: Content-Type: application/json
    Header: Authorization: Bearer SESSION_ID

  Response:
    200 OK: { “response”: [ BOT_MESSAGES ] }
    401 UNAUTHORIZED: no body
POST /sendMessage
  Request:
    Header: Content-Type: application/json
    Header: Authorization: Bearer SESSION_ID
    {“text”: “user message”}

  Response:
    200 OK: { response: [ BOT_MESSAGES ] }
    401 UNAUTHORIZED: no body

Where BOT_MESSAGES are a JSON object which can be one of the following:
  {“type”: “text”, “text”: “bot message”}
  {“type”: “image”, “url”: “image url”}

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.