Evaluating News Articles with NLP is the fourth project of Udacity Front End Web Developer nanodegree program. It requires to build a web tool to run Natural Language Processing on news articles or blog posts.
The goal of this project is to practice with:
- Setting up Webpack
- Sass styles
- Webpack loaders and plugins
- Creating layouts and page design
- Service workers
- Using APIs and creating requests to external URLs
- Using Jest
- Based on URL entered by user, the app uses AYLIEN Text Analysis API to analyze article by four parameters:
- Polarity
- Subjectivity
- Polarity confidence
- Subjectivity confidence
- The regex-based URL validation is implemented.
Cool tech stuff used in this project:
- Node.js
- Express framework
- Node.js packages:
- cors
- body-parser
- Download Node.js from here.
- Install the dependencies using NPM.
npm install
- Get AYLIEN Text Analysis API key here.
- Clone this repo.
cd
into project directory.- Create
.env
file in the root of the project. - Fill the
.env
file with your API keys.
API_ID=ENTER_YOUR_ID_HERE
API_KEY=ENTER_YOUR_KEY_HERE
To run tests, from project directory run the following command:
npm run test
- From project directory, run the following command:
npm run build-dev
- Run run the server.
npm start
- Access
http://127.0.0.1:8080/
in your browser.
To run the app in production mode:
- Build the
dist
folder.
npm run build-prod
- Start the server.
npm run start
- Access
http://127.0.0.1:8080/
in your browser.
Alexandra Baturina