what is done in this project
- creating the webpack files
- using webpack loaders and plugins
- using sass styles
- using service workers
- using meaning cloud api
- unit testing using jest framework
- creating the webpack files :
I have created 2 webpack files , first one in production mode and the second in develop mode . then i have created package.json file to write the dependencies in it then i have installed the npm libraries which was needed in the project
- using webpackloaders and plugins :
webpackloaders: babel-loader, css loader, sass loader plugins: HtmlWebPackPlugin, MiniCssExtractPlugin, WorkboxPlugin.GenerateSW
- using sass styles :
I have created 4 sass files to style the project
- using meaning cloud api : i have used the the sentiment Analysis api from meaning cloud. The text provided would be analyzed to determine if it expresses a positive/negative/neutral sentiment; to do this, the local polarity of the different sentences in the text is identified and the relationship between them evaluated, resulting in a global polarity value for the whole text.
to run the project :
- you have to create a file called .env with your own API_KEY in it
- you have to build node_modules folder with npm install in the terminal
- then you have to build the dist folder with npm run build-prod
- finally start the server with npm start
- you should find the application on the localhost:8081 on your browser