Skip to content

Latest commit

 

History

History
99 lines (63 loc) · 1.81 KB

README.md

File metadata and controls

99 lines (63 loc) · 1.81 KB

Sentiment Analysis with Natural Language Processing

Fourth project for Udacity's Front-end Nanodegree.

The app fetches the sentiment analysis of either text or a webpage provided by the user.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have a browser, Chrome is preferable.
  • You have installed node and have a code editor such as Visual Studio Code.

As this project depends on Nodejs and Node Package Manager (NPM) you must download and install Node (NPM comes with Node) from here.

Installation

Installing project dependencies

After cloning, open your terminal and run:

npm install

tip: npm i is shorthand for npm install

API setup

In order to run the app locally you need to signup for the meaningCloud API here.

In the root directory, create a .env file to safely store your API key.

API_KEY = "**************************"

Run in development

Start the webpack dev-server

npm build-dev

Start the server

npm start

Run in production

Generate the dist folder

npm build-prod

start the server

npm start

Navigate to http://localhost:2099

Run tests

To run the tests, run

npm test

Acknowledgments

Deployment

Deployed with Heroku at nlp-sentiment-analysis-app.herokuapp

Built With

  • SCSS
  • HTML
  • JS
  • API
  • NodeJS
  • Express
  • Webpack
  • Babel
  • Service Worker
  • Jest
  • Heroku