Skip to content

evaluate a news article is a single-page app for the Udacity Nanodegree analyzes the sentiment of news articles from a URL using the MeaningCloud API.

Notifications You must be signed in to change notification settings

HebaHamdan2/evaluate-a-news-article-with-NLP

Repository files navigation

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)

About

evaluate a news article is a single-page app for the Udacity Nanodegree analyzes the sentiment of news articles from a URL using the MeaningCloud API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published