Open sivashankerN opened 8 years ago
Clone the repo called data-api
navigate to edx-analytics-data-api
cd edx-analytics-data-api
Follow the instructions given in https://github.com/edx/edx-analytics-data-api till running
./manage.py runserver
In browser we can see api running now.
From above commands we are able to see only dummy analytics of Demo_course. That is not we want.
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
May be some thing wrong in running above command.
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.