openedx-vlead / port-labs-to-openedx

3 stars 8 forks source link

Set up Analytics Data API server on Insights/Analytics machine #34

Open sivashankerN opened 8 years ago

sivashankerN commented 8 years ago

Set up Analytics Data API server on Insights/Analytics machine and get the analytics for following.. This needs setting up Data analytics API server and client.

sivashankerN commented 8 years ago

In browser we can see api running now.

sivashankerN commented 8 years ago

From above commands we are able to see only dummy analytics of Demo_course. That is not we want.

sivashankerN commented 8 years ago

just gone through https://github.com/edx/edx-analytics-pipeline/wiki/Running-the-analytics-backend-locally

at "make validate" command

root@ip-172-31-24-228:/edx/app/analytics_api/analytics_api# make validate pip install -q -r requirements/base.txt pip install -q -r requirements/test.txt find . -name '*.pyc' -delete coverage erase coverage run ./manage.py test --settings=analyticsdataserver.settings.test \ --with-ignore-docstrings --exclude-dir=analyticsdataserver/settings \ analyticsdataserver analytics_data_api nosetests analyticsdataserver analytics_data_api --with-ignore-docstrings --exclude-dir=analyticsdataserver/settings --verbosity=1 Creating test database for alias 'default'...

.......................................................................................................................................................................................

Ran 183 tests in 76.570s OK Destroying test database for alias 'default'... export COVERAGE_DIR=/edx/app/analytics_api/analytics_api/build/coverage && \ coverage html && \ coverage xml pep8 analyticsdataserver analytics_data_api pylint analyticsdataserver analytics_data_api ***** Module analytics_data_api.v0.tests.views analytics_data_api/v0/tests/views/init.py:4: [C0411(wrong-import-order), ] external import "from rest_framework import status" comes before "from opaque_keys.edx.keys import CourseKey" make: *\ [quality] Error 16

sivashankerN commented 8 years ago

May be some thing wrong in running above command.