Skip to content

schummd/text-augmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Using VM

  1. Obtain a license (free for CSE students) and download Vmware Fusion Pro (mac) or Vmware Workstation Pro/player (windows) here

  2. Download and run the prebuilt VM available here. Password for VM is COMP9323

If you have issues installing or using the VMWare software, then use VirtualBox as a free alternative.

  • VirtualBox Installation guide
  • Installing OVA files in VirtualBox guide

Locally

Installation

  1. In /frontend run yarn install
  2. In /server run make install

Usage

  • Ensure API keys have been loaded as described below.

Server

  • run make migrate (one time) followed by make run. Server should be running on port 5000. See swagger docs at http://127.0.0.1:5000/
  • To run tests: make tests
  • To squash DB: make squash. You must then run make migrate again to re-initialise DB.

Frontend

API Keys

Two env files are requied. One for frontend, and one for backend.

Frontend (/frontend/.env)

In the /frontend folder, create a file named .env:

├── frontend
│   └──.env

Contents of frontend/.env:

REACT_APP_YT_KEY="XXXXXXXXXX"
REACT_APP_NEWSAPI_KEY="XXXXXXXXXX"
REACT_APP_UNPAYWALL_EMAIL="XXXXXXXXXX"

Server (/server/server.env)

In the /server folder, create a file named server.env:

├── server
│   └── server.env

Contents of server/server.env:

IBM_WATSON_API_KEY="XXXXXXXX"
IBM_WATSON_URL="XXXXXXXX"
MEANING_CLOUD="XXXXXXXX"
OXFORD_API_KEY="XXXXXXXX"
OXFORD_ID="XXXXXXXX"
SCIENCE_PARSE_URL="http://SPV1-Scienc-C3GW28LU2S2X-1391134067.eu-north-1.elb.amazonaws.com/v1"

Obtaining keys

  • REACT_APP_YT_KEY: API key for youtube Getting a key
  • REACT_APP_NEWSAPI_KEY: API key for newsapi.org Get a key
  • IBM_WATSON_API_KEY and IBM_WATSON_URL: Get a key
  • MEANING_CLOUD: Get a key
  • OXFORD_API_KEY and OXFORD_ID: Get a key
  • REACT_APP_UNPAYWALL_EMAIL (Any email address)

Credits

  • Backend boilerplate used from here
  • Scientific paper parsing library used for parsing PDFs. Taken from here which is our fork of science-parse. Due to high resource usage and operational overhead required to provide a reliable local instance, it has been deployed here on a load balanced AWS ECS service.

Unused

  • The highlight models and endpoints were initially used to store manual and automatic highlights as well as a user's notes. However our vision of the project changed as we progressed so the idea was scrapped but the endpoints still exist in the backend. We decided to leave this endpoint as it is since it could be used for any possible future features that may relate to this idea

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published