This is a simple project for analyzing articles, news, and text using Natural Language Processing via the services offered by Meaning Cloud API.
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.
Tech stack includes:
- Sass as my CSS preprocessor for styling.
- Webpack as my build tool.
- Babel for using the latest ES syntax, while maintaining support for older browser.
- Express as my
Node.js
backend framework.
├── README.md
├── webpack.dev.js *** Webpack development environment configuration.
├── webpack.prod.js *** Webpack production environment configuration.
├── package.json *** Project dependencies.
├── __test__ *** Project testing suites.
└── src
├── client
| ├── js
| ├── styles
| ├── views
| └── index.js
└── server
└── index.js
cd
into the project's root directory and run:
npm install
This project uses the Meaning Cloud API to handle the natural language processing part.
You need to signup for a new account, if you don't have one already. Then head to here and under the Your subscriptions section you will find your API key.
Now create a .env
file in the root directory of the project and inside it add the following:
MEANING_CLOUD_API_KEY=<your_api_key>
To run the application in production mood, firstly create the build file by executing:
npm run build-prod
Now, to the run the local production server, run:
npm start
The app should now be running at localhost:8081.
Make sure to be in the project's root directory, then to run all test suites, execute:
npm run test