This Project is a web tool that allows users to run Natural Language Processing (NLP) on articles or blogs found on other websites.It will give us back pertinent information about the article, like whether the content is subjective (opinion) or objective (fact-based) and whether it is positive, neutral, or negative in tone.
Natural language processing (NLP) is a subfield of computer science, information engineering, and artificial intelligence concerned with the interactions between computers and human (natural) languages, in particular how to program computers to process and analyze large amounts of natural language data.
Aylien API is a new Text Analysis API of Natural Language Processing (NLP) where you can send a link or a text to the API and the API will analyse the text and respond with information from textual content.
The project has the following file structure
- dist/
- src/
- client/
- js/
- formHandler.js
- urlChecker.js
- styles/
- views/
- images/
- index.html
- index.js
- server/
- index.js
- mockAPi.js
- tests-with-jest/
- formHandler.spec.js
- urlChecker.spec.js
- .babelrc
- .gitignore
- package-lock.json
- package.json
- process.env
- README.md
- REQUIREMENTS.md
- screenshot_for_tests.png
- webpack.dev.js
- webpack.prod.js
- Download/Clone this repository
- cd into the new folder and Install all dependancies
- put
npm install
on the terminal
- put
- to run the server in the production mode and create dist folder
npm run build-prod
on the terminal
- For using Aylien Api, Sign Up here to get your own API KEY & ID
- Create a
.env
file that contain yourAPI_ID
and yourAPI_KEY
- Create a
- To start the server by
- Put
npm start
in the terminal - This project is running on: http://localhost:3000
- Put
The project have service workers set up in webpack.
The project has Jest installed and can be run using npm run test