An API server that computes the context surrounding quotations on a submitted URL.
- accepts quote POST requests from the client, of the form:
- url
- quote
- looks up the cited URL's html
- calculates the context surrounding the quote
- saves the contextual data to a Postgres database
- uploads the quote-context json file to Amazon S3.
- Python 3.4 or higher is required
-
Clone the Git Repository (with GitHub Desktop Client):
- Download the GitHub Desktop Client if you don't have it already.
- Make sure you're logged in when using the client
- Click the Green "Open in Desktop" link
- Click "Clone in Desktop"
-
Setup Virtual Environment:
- Open a Command Prompt in the Directory where you Cloned the Project pip install virtualenv - If you get a Permission Denied Error when installing Virtual Environment PermissionError: [Errno 13] Permission denied: 'c:\program files\python36\Lib\site-packages\virtualenv.py'
- You have to be able to write to the folder that you're installing it to http://stackoverflow.com/questions/31172719/pip-install-access-denied-on-windows
- Create a New Virtual Environment virtualenv neotextEnv (where neotextEnv is the name of the environment)
- Activate the Virtual Environment on Windows: - neotextEnv\Scripts\activate.bat
- You should see your command prompt say: * (neotextEnv) C:\Path\To\Repositories
-
Go to the main folder containing requirements.txt:
- pip install -r requirements.txt
-
Add your own neotext folder to the python path
- create a Python Path variable if you don't have one already
-
Setup your own Database & AWS Credentials in settings.py
- copy settings.default.py to settings.py
-
Create Postgres Database (optional: it will use SQLlite otherwise):
- if using SQLlite, there is no need to edit the settings file
- if using Postgres, Download Postgres if you don't have it
- run the Postgres installer
- create new database and user,
- note the Postgres database name and password
- edit the Postgres database password in settings.py
-
Create the Database Tables (all database types)
- python manage.py syncdb
- Clone the Git Repository:
- Setup Virtual Environment:
- pip install virtualenv
- virtualenv venv
- source venv/bin/activate
- In main folder containing requirements.txt:
- pip install -r requirements.txt
- Add your own neotext folder to the python path
- export PYTHONPATH="$PYTHONPATH:/home/timlangeman/webapps/neotext/neotext"
- view python path
-
Setup your own Database & AWS Credentials in settings.py
- copy settings.default.py to settings.py
-
Create Postgres Database (optional: it will use SQLlite otherwise):
- if using SQLlite, there is no need to edit the settings file
- if using Postgres, create new database and user,
- note the Postgres database name and password
- edit the Postgres database password in settings.py
-
Create the Database Tables (all database types)
- python manage.py syncdb
v0.01 - initial release
Created by Tim Langeman. Inspired by Ted Nelson.
Be the first contributor. Your name here!