Skip to content

SpartaSystems/social-media-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project contains two main components:

  1. The actual monitor that collects configured social media events.
  2. A web based user interface to browse the collected data. The webapp is made of a backend component and a frontend component.

Monitor

Monitoring setup

  • Configure credentials for aws sdk in aws.json. The credentials should have permissions to AWS comprehend.
  • Configure credentials for twitter stream api in twitter.js
  • Make sure you have a mongo database running locally and create a text index on the text column. db.tweets.createIndex({"text":"text"})

Notifications setup

Runtime

node index.js

Webapp

Backend Rest Service

npm start will run the app on port 3000

Frontend

npm run build will build the ui and put it in a build/ directory. Configure your http directives to direct port 80 at this folder.

When running locally you can use npm run serve to serve the build directory on port 8000. Depending on how you run the backend you may need to adjust BaseService.js to direct rest calls to the appropriate mount point for your backend.

Deployment

  • The deployment script relies on there being a .pem file in the root of the project.
  • The deployment script expects to find the file update_creds.sh in the directory directly above this repository. This file updates the credentials in aws.json and twitter.js so that you don't have to manually enter the creds on the server every time you deploy.
  • ./update_creds.sh (-h|-d|-c)
    • -h : help message
    • -d : deploy latest master branch to production
    • -c : update config files with credentials (not stored in vcs)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published