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.
- HTML
- CSS
- JavaScript
- Node
- Express
- Webpack
- meaningcloud API
- Jest
- Workbox
Make sure Node and npm are installed from the terminal.
node -v
npm -v
- Move to the project folder
cd <project directory>
- Clone the repo
git clone <repo>
- Install npm
npm install
-
Sign up for an API key at meaningcloud.com
-
Configure environment variables using dotenv package
- Create a new
.envfile in the root of your project - Fill the
.envfile with your API key like this:
API_KEY=************************** - Create a new
-
Start the 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 installnpm run build-prod to generate a dist folder for prodnpm run start to run the Express server on port 8080
Note: The web page can be accessed with localhost:8080
- Open browser at http://localhost:8081/