Mohamed2del / evaluate-news-nlp-udacity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Evaluate A News Article with Natural Language Processing

first project at [Udacity]( advanced frontend developlemnt nanodegree from FWD )

This project aims to build a web tool that allows users to run Natural Language Processing (NLP) on articles or blogs found on other websites. When a user submits a URL of an article, the web page then dispalys sentiment analysis returned from meaningcloud API, based on the contents of the article.

Build Tools

  • HTML
  • CSS
  • JavaScript
  • Node
  • Express
  • Webpack
  • meaningcloud API
  • Jest
  • Workbox

Installation

Make sure Node and npm are installed from the terminal.

node -v
npm -v
  1. Move to the project folder
cd <project directory>
  1. Clone the repo
git clone <repo>
  1. Install npm
npm install
  1. Install loaders and plugins
# Choose the necessary installation for your development mode
npm i -D @babel/core @babel/preset-env babel-loader
npm i -D style-loader node-sass css-loader sass-loader
npm i -D clean-webpack-plugin
npm i -D html-webpack-plugin
npm i -D mini-css-extract-plugin
npm i -D optimize-css-assets-webpack-plugin terser-webpack-plugin
  1. Sign up for an API key at meaningcloud.com

  2. Configure environment variables using dotenv package

    1. Install the dotenv package
    npm install dotenv
    
    1. Create a new .env file in the root of your project
    2. Fill the .env file with your API key like this:
    API_KEY=**************************
    
  3. Start the project

Command Action
npm run build-prod Build project
npm start Run project
  1. Open browser at http://localhost:8081/

About


Languages

Language:JavaScript 52.1%Language:SCSS 29.6%Language:HTML 17.9%Language:Shell 0.4%