Install Docker Compose & VirtualBox.
Clone the Hypothes.is repo and copy the docker-compose.yml
file below inside.
# Create a Docker machine if needed
docker-machine create --driver virtualbox default
eval $(docker-machine env default)
docker-compose up -d
virtualenv .venv
source .venv/bin/activate
export DATABASE_URL=postgresql://postgres@`docker-machine ip default`/postgres
export ELASTICSEARCH_HOST=http://`docker-machine ip default`:9200
export BROKER_URL=amqp://guest:guest@`docker-machine ip default`:5672//
# Server will run on localhost:5000
make dev
bin/hypothesis --dev user add
bin/hypothesis --dev user admin admin
Log in with your user credentials an obtain an API token.
curl -H 'Authorization: Bearer <API_TOKEN>' http://localhost:5000/api/