Skip to content

JohnEmadNashed/evaluate-news-article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Evaluate News Article with Natural Language Processing

Project at Udacity Become a React Developer Nanodegree program.

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. Sign up for an API key at meaningcloud.com

  2. Configure environment variables using dotenv package

    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

To Run Project

(Currently, prod mode allows you to see the results of the API fetch):

  • cd into your new folder and run in prod mode
  • npm install
  • npm run build-prod to generate a dist folder for prod
  • npm run start to run the Express server on port 8080

Note: The web page can be accessed with localhost:8080

  1. Open browser at http://localhost:8081/

About

This is Udacity's First project of Advanced web development course. in this project we used meaningCloud Api to perform NLP analysis on a given URL.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors