angadgill / python-web-analytics

Simple cloud-based web analytics in Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python-web-analytics

Simple cloud-based web analytics in Python.

How to test pwanalytics.js:
python -m SimpleHTTPServer 8000

Open a web browser and navigate to localhost:8000/boilerplate-html/index.html Use the console to see that PyWebAnalytics has loaded with no errors.

How to run the collector server:

Install a local copy of DynamoDB. See guide here. Set environment variables as follows:

export DYNAMO_ENABLE_LOCAL=True  
export DYNAMO_LOCAL_HOST='localhost'  
export DYNAMO_LOCAL_PORT=8080  

Run the DynamoDB local instance:

java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb -port 8080

Setup DynamoDB:

python collector/dynamodb_setup.py

To run the collector server, run commands as follows:

python collector/collector.py

This server accepts GET requests at this address: localhost:5000 and prints data received as URL params to the terminal.

About

Simple cloud-based web analytics in Python.


Languages

Language:ApacheConf 72.8%Language:JavaScript 8.6%Language:Python 6.3%Language:HTML 6.1%Language:CSS 5.7%Language:Shell 0.6%