Skip to content

Latest commit

 

History

History
58 lines (31 loc) · 1.74 KB

ModifyingTuningSample.md

File metadata and controls

58 lines (31 loc) · 1.74 KB

Misc. Tuning of the sample

Some of this could/should be factored out into various parameters:

Modifying the Number of Tweets Displayed

Set "startingPoint" and "endingPoint" to your desired values in TweetService.java.

Temporarily Disable Sentiment Analysis

Set useWatson to false in the processor.

In TweetFileProcessing.xml edit this property within the job XML:

   <properties>
      ...
        <property name="useWatson" value="true"/>
   </properties>
   

Modifying the Front End

Go to the reacter folder and npm install. Run npm start to preview your changes. The react development server uses port 3000 by default, but will automatically proxy any api calls to Fetcher's REST API on port 9080 and transpile .scss files to .css for you. When you have made your changes, do a npm run build to compile. Move the contents of reacter's build folder into the webapp folder, overwriting the older files.

Modification process in detail

Prereq: Install npm

  1. Do npm install (only need to once)

    npm install

  2. Do reacter build

    cd reacter; npm run build; cd --

  3. Delete old

    git rm -r src/main/webapp/

  4. Copy over reacter build

    mkdir src/main/webapp; cp -r reacter/build/* src/main/webapp/

  5. Add new to Git

    git add src/main/webapp/

Now proceed to do a commit, etc.

NPM Audit

As seen here, you can run npm audit and npm audit fix to resolve security issues with underlying dependencies.

TODO: Elaborate on this process.