Code Monkey home page Code Monkey logo

evaluate-a-news-article-with-nlp's Introduction

Overview

Evaluate a news article with NLP is a single page application designed for the Udacity Frontend Web Developer Nanodegree. This project allows users to enter a valid URL and receive an evaluation of the article's sentiment using the MeaningCloud Sentiment Analysis API.

The application provides insights into the article's polarity, confidence, agreement, subjectivity, and irony. The project utilizes tools such as Webpack for build automation, Sass for styling, and Jest for testing. It is designed to offer hands-on experience with these tools and to understand their roles in building a frontend application.

Untitled.video.-.Made.with.Clipchamp.8.mp4

Technologies Used

  • Webserver: Node.js

    • Manages backend server operations and request handling.
  • Web Application Framework: Express

    • Facilitates backend server routing and API management.
  • Build Tool: Webpack

    • Development Mode:
      • Features Hot Module Replacement (HMR) for real-time updates.
      • Includes source maps for easier debugging.
    • Production Mode:
      • Minifies code and optimizes assets for performance.
      • Splits code into bundles for improved load times.
      • Integrates service workers to enhance offline capabilities.
  • External Script: Service Worker

    • Provides offline functionality and caching for better performance.
  • External API: MeaningCloud

    • Delivers sentiment analysis to evaluate and interpret news articles.

Getting Started

  1. Clone the Repository

    git clone https://github.com/HebaHamdan2/Evaluate-a-news-article-with-NLP.git
  2. Install Dependencies

    Install the necessary npm packages:

    npm install
  3. Set Up Environment Variables

Create a .env file in the root of your project directory with the following content:

API_KEY=your_api_key

Scripts

Here are the available npm scripts:

  • Start the Server
npm start
  • Start Development Server
npm run build-dev
  • Build for Production
npm run build-prod
  • Run Tests
npm run test

Reviewer Note

Screenshot (1271)

evaluate-a-news-article-with-nlp's People

Contributors

hebahamdan2 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.