Skip to content
This repository has been archived by the owner on Jun 21, 2021. It is now read-only.

Update README.md #19

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,25 @@ Be warned, this is about 1.8 GB:

If you are using Mac OS X and had trouble installing Numpy, please see the
instructions here: https://gist.github.com/goldsmith/7262122

### Install

Ensure you have [Postgres]() installed and running. Setup the DB with:

$ createuser hascore
$ createdb -O hascore hascore

It's recommended to use [Virtualenv](docs.python-guide
.org/en/latest/dev/virtualenvs/). To install hascore, run:

$ pip install -r requirements.txt

Run the server with:

$ python runserver.py

### Usage

Hascore by default runs on port 8070. Access `http://localhost:8070/1/` followed
by the module you want to query. For example:
`localhost:8070/1/geo/parse_locations?q=goa`