- Use Aylien NLP API to read website content and provide basic sentiments like Opinion/Factbased, Postive/Neutral, etc.
- Build simple web interface using Node/Express and powerup using Webpack, Jest, and other tools.
Below shows how to run in development and production mode.
$ npm install
To start the webpack dev server at port 8080
$ npm run build-dev
Generate the dist files and then start server at port 3000
$ npm run build-prod
$ npm run start
-
Setup environment based webpack config files:
- Development :
webpack.config.dev.js
- Production :
webpack.config.prod.js
- Development :
-
Manage dependencies using
package.json
file.
The project uses the Text Analysis SDKs from aylien, which provides a powerful and flexible AI-driven content analysis solutions.
The project have service workers set up in webpack to provide the offline functionality of our app. When the service worker is functioning correctly, you will see the below message when you inspect the browser.
Testing is done using Jest. To run test, use the command
npm run test