Skip to content

RavenB/reporter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Social Harvest (reporter) Build Status Coverage Status

http://www.socialharvest.io

Social Harvest is a scalable and flexible open-source social media analytics platform.

There are three parts to the platform. This harvester, a reporter API, and the Social Harvest Dashboard for front-end visualizations and reporting through a web browser.

This application (reporter) returns harvested information from a database used by the harvester application by exposing a read-only API.

While Social Harvest® is a registered trademark, this software is made publicly available under the GPLv3 license. "Powered by Social Harvest®" on any rendered web pages (ie. in the footer) and within any documentation, web sites, or other materials would very much be appreciated since this is an open-source project.

Configuration

You'll need to create a JSON file for configuring Social Harvest. Ensure this configuration file is named social-harvest-conf.json and sits next to the binary Go built or next to the main.go file (unless you pass another location and name when running Social Harvest).

For an example configuration, see example-conf.json

This application can use the same configuration file as the harvester application or a different one with less settings. You may, for example, want to keep various private keys out of the configuration for this application as it may be running on a different server than the harvester.

Note: If you are working with the Social Harvest Dashboard and are developing locally with grunt dev then you will likely be running the dashboard on a Node.js server with a port of 8881 (by default) and you will need to configure CORS for that origin. You can add as many allowed origins as you like in the configuration.

Running

To run the reporter API server, you should compile it into a binary and run that. However, you can also run it via:

go run main.go database.go routes.go

There are several files for organization purposes, so you'll need to include those when using go run. You'll also want to make sure the config file is next to the binary (or main.go) unless you defined a different path using ---conf=.

You should be able access the API server on port 3001 unless you configured it differently.

About

The reporter gets the data back out for the dashboard (or anything else), it is a read API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%