GithubHelp home page GithubHelp logo

sentimentor's Introduction

Sentimentor

Go here: https://sentim-api.herokuapp.com/. This is an API that tries to determine if a text expresses positive or negative emotions. The problem is, it doesn't have a nice webpage to display the results.

Your job is to fix that!

Requirements

Your webpage will contain:

  • a textarea input where the user can write/paste text
  • a button for sending the text to the API
  • an area to display the result

Once the API returns an answer, the results area will contain:

  • the numeral polarity of the result
  • the string type of the result (positive/negative)
  • both of the above should be green if positive, red if negative, and grey if neutral.

While the result from the API is still being loaded, the results area will contain a "loading" indicator. Feel free to use a cool spinner animation.

If the API returns an error, the results area will show a message that there was an error.

Bonuses

  • Below the results area, display the appropriate HTTP Cat based on the status of the response.

Submission

  1. On GitHub, open a pull request from your branch to the main branch.
  2. Do not merge the pull request!
  3. Add the user Cyber4sPopo as collaborator to your repo.
  4. Submit a link to the pull request in Google Classroom.

Additional Notes

  • Remember objects need to be serialized so you can send them.
  • Remember HTTP status codes above 400 are errors.

sentimentor's People

Contributors

romans1995 avatar tswusayonatsamsiyu 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.