This project is a web tool that allows users to run Natural Language Processing (NLP) on articles or blogs found on other websites by giving the destination URL. Using an exciting new api called Aylien. This tool will give us back pertinent information about the article, whether the content is subjective or objective, whether it is positive, neutral, or negative in tone and the evaluated article with some basic information.
npm run build-dev
: to run development modenpm run build-prod
: to build the production version of the projectnpm run start
: to run the express servernpm run test
: to test the project functionallities
- execute the command:
npm install
to install the required packages.
First, you will need to go here. Signing up will get you an API key. Don't worry, at the time of this course, the API is free to use up to 1000 requests per day or 333 intensive requests. It is free to check how many requests you have remaining for the day.
Next we need to declare our API keys, which will look something like this:
// set aylien API credentias
var textapi = new aylien({
application_id: "your-api-id",
application_key: "your-key"
});
- Create a new
.env
file in the root of the project - Fill the .env file with your API keys like this:
API_ID=**************************
API_KEY=**************************