Skip to content

Frontend component for Hoaxy, a tool to visualize the spread of claims and fact checking

License

Notifications You must be signed in to change notification settings

cirlabs/hoaxy-frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclaimer

The name Hoaxy is a trademark of Indiana University. Neither the name "Hoaxy" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

Hoaxy frontend

This is the frontend of Hoaxy, and it is intended to be used in conjunction with an implementation of the Hoaxy backend platform, which is available at:

http://github.com/iunetsci/hoaxy-backend

We strongly recommend that you implement the Hoaxy backend before this frontend. For more information, including a description of the application and information on how to collaborate with the Hoaxy team, please visit the official Hoaxy website.

Requirements

Templating and Server

Header, Footer, and Global Includes are located under /includes/.

This site uses Server Side Includes (SSI) to handle the header and footer. SSIs are built into Apache, but may need to be enabled. As such, we recommend running this on an Apache server. More research may be required to utilize SSIs on non-Apache servers. Other methods of including the required files (such as the Flask templates) may require modifications of the code or installation of additional libraries. In the event that using SSIs is impractical or impossible, you should copy the code from the include files directly into index.html and stats.html.

Dependencies

The JavaScript dependencies are listed in includes/includes.html. Most libraries are included via CDNs except for two Sigma.js plugins which are located in static/sigmaplugins.

The graph visualization uses Sigma.js, and it was tested with v1.1.0. The timeline chart is implemented using NV.D3, a plugin for D3.js, and it was tested with NV.D3 v1.8.1 and D3 v3.5.17. Feel free to use more recent versions at your own risk.

Configuration

API endpoints must be defined in a config.js file placed in the root directory. An example config file - config.example.js - has been provided to show you the correct format. It features endpoints from the public Hoaxy Mashape API. These endpoints should be modified to point to your own implementation of the Hoaxy Backend.

About

Frontend component for Hoaxy, a tool to visualize the spread of claims and fact checking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.5%
  • HTML 24.5%
  • CSS 4.0%