Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project status #49

Open
SamuelMarks opened this issue Nov 13, 2017 · 4 comments
Open

Project status #49

SamuelMarks opened this issue Nov 13, 2017 · 4 comments

Comments

@SamuelMarks
Copy link

Is this usable or abandoned?

Happy to contribute

@littleski
Copy link

Hello, we still use it, but it's been a long time since we updated edx so it might not work with latest edx version. Since edx doesn't evolve much, it might still be working tho.

@SamuelMarks
Copy link
Author

Thanks I'll give it a go. I'm trying to map my blocks to their associated exams.

@SamuelMarks
Copy link
Author

@littleski The 'Getting Started' section is empty. What am I doing wrong?

edx-modulestore-node$ node
> const ms = require('./');
undefined
> ms.connect('localhost', 'edxapp'); // also tried: `connect('localhost')`
Promise {
  _bitField: 0,
  _fulfillmentHandler0: undefined,
  _rejectionHandler0: undefined,
  _promise0: undefined,
  _receiver0: undefined }
> let courses; ms.listCourses().then(_courses => courses = _courses);
Promise {
  _bitField: 0,
  _fulfillmentHandler0: undefined,
  _rejectionHandler0: undefined,
  _promise0: undefined,
  _receiver0: undefined }
> courses;
[]

@littleski
Copy link

Some code snippet i ve extracted from our code

const modulestore = require('edx-modulestore');
modulestore.options.lmsUrl = '<lms url>'
modulestore.options.studioUrl = '<studio url>'
modulestore.connect(
                CONF.get('modulestore:mongo:uri'),
                CONF.get('modulestore:mongo:options')
            )

var ModulestoreCourse   = require('edx-modulestore/lib/course');
    var getCourse = function () {
        return ModulestoreCourse.get(id);
    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants