by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 25 15:48
    moloko edited #2928
  • Sep 25 14:48
    kirsty-hames opened #2929
  • Sep 25 13:18
    moloko edited #2928
  • Sep 25 13:18
    moloko opened #2928
  • Sep 25 09:57
    moloko review_requested #202
  • Sep 25 09:57
    moloko opened #202
  • Sep 25 09:56

    moloko on 2927

    set default parameters for setS… (compare)

  • Sep 25 09:53
    moloko assigned #2927
  • Sep 25 09:53
    moloko opened #2927
  • Sep 25 08:45
    chris-steele closed #125
  • Sep 25 08:40

    chris-steele on v2.1.11

    (compare)

  • Sep 25 08:38

    chris-steele on master

    create course now uses highest … fix merge conflicts Merge pull request #131 from ad… (compare)

  • Sep 25 08:38
    chris-steele closed #131
  • Sep 25 08:32
    chris-steele opened #131
  • Sep 25 08:32

    chris-steele on develop

    Bump lodash from 4.17.11 to 4.1… Bump bower from 1.8.4 to 1.8.8 … Bump mixin-deep from 1.3.1 to 1… and 10 more (compare)

  • Sep 25 08:21

    chris-steele on develop

    create course now uses highest … (compare)

  • Sep 24 18:26
    moloko labeled #2926
  • Sep 24 18:26
    moloko assigned #2926
  • Sep 24 18:26
    moloko assigned #2926
  • Sep 24 18:26
    moloko opened #2926
joseluis1260
@joseluis1260
Thanks, great info for newbies like myself...I´ll try to "adapt" me soon to the new (for me) lingo! ;)
Matt Leathes
@moloko
lol
hopefully you're using a version control system of some kind?
joseluis1260
@joseluis1260
🥺 nooopeee...
any recommendation? using OSX 10.15.6.
Matt Leathes
@moloko
Well, Git does seem to be the popular option these days and is also what we use for Adapt
Within Kineo we use Subversion for our project work, partly because when we started out Git was pretty new
and then later the cost of re-training everyone and switching over were pretty high for very little extra benefit
will it just be you working on these projects or will you need to share your work with others?
joseluis1260
@joseluis1260
I come from the Instructional Design side trying to learn a new tool in order to deliver a better product. But I have some training in the old programming school and done some pieces of software using VBA.😬. For now I am the "only developer" ...
Matt Leathes
@moloko
either way I definitely recommend version control. honestly the thought of NOT using it on a project terrifies me!!
and once you come to the point where you want to collaborate on a project with others it becomes essential really
joseluis1260
@joseluis1260
👍🏼 thanks for the advice. I´ll learn how to...
joseluis1260
@joseluis1260
Any tips on how to start tweaking the course? Do you recommend starting in the Adapt section "Course Authoring/Creating-your-first-course"? (or is directed just to Authoring Tool Users)? https://github.com/adaptlearning/adapt_framework/wiki/Creating-your-first-course
Matt Leathes
@moloko
Git probably is the easiest route as you can do it locally to start with (i.e. no server required)
yes that's a good place to start
please feel free to suggest improvements ;-)
as with all projects like this, keeping the documentation up to date is really hard
joseluis1260
@joseluis1260
I know, always running on the production side and screaming for documentation time!
and Visual Studio Code is a great editor
has built in CLI and support for version control with Git built-in
rub-cli is good because it allows you to do a few things the open source command line doesn't, in particular:
  • you don't need to have two copies of your course content, you can dispense with src/course
  • you can build multiple courses from the same source
joseluis1260
@joseluis1260
thanks for all your directions and tips. I´ll working on this learning project of mine..😳 I keep in touch to learn and if possible offer comments on my journey through the documentation and application of the subject matter to "my course".
Chuck Lorenz
@chucklorenz
@joseluis1260 Expect to come back here to ask questions if you get to the point of using rub-cli. I, too, recommend it, but the installation instructions/README doesn't mention that a "builds" folder is required and that you move the "course" folder into a named module folder.
joseluis1260
@joseluis1260
Thank you!, @chucklorenz I appreciate the welcoming in this forum as well all your tips and recommendations. After 2 weeks of wandering around YouTube & other sites, your forum really helped me to "land" on a clear and understandable installation. Thank you All. I´ll be in touch. Let me start the homework assigned above!
Matt Leathes
@moloko
:thumbsup:
Chetan Sachdev
@cksachdev

@cksachdev this is a link to SCORM Cloud's debug log for a test I just did using Adapt FW v5.7.0 & spoor v3.3.2 - scroll to the end and you should be able to see that it is definitely doing an LMSCommit call after I close the browser window. Browser used Chrome 85.0.4183.121 - just to double-check that SCORM Cloud has been patched to work around the "'Allows synchronous XHR requests in page dismissal' setting being set to 'disabled' by default in Chrome v80+" issue.

@olivermartinfoster @moloko I have added the commit method as you suggested, also changed the ordering of method calls but I don't see LMSCommit getting triggered. Here you can find a log from my test course (https://cloud.scorm.com/sc/guest/ViewDebugLog?logId=67c63833-bbb9-40d0-8ce3-587601b57d0d&courseTitle=Demo+CloudLCMS+Pre-Test%2FPost-Test+Example)

4 replies
Chetan Sachdev
@cksachdev
Q. I have updated Adapt Model and removed 1 contentObject, how can I trigger a re-render of Box Menu with latest data?
Oliver Foster
@oliverfoster
you can't
you have to refresh the page
or rerender the whole view
Adapt.router.navigateToCurrentRoute()
Chetan Sachdev
@cksachdev
@oliverfoster Thanks for the response Oliver. Refresh may not be an expected behaviour. I have tried to put these changes in preRender but then Model data isn't ready, I tried on postRender but that's probably too late. Is there an event which I can rely on which is triggered as soon as Model is ready and passed to Box Menu?
Oliver Foster
@olivermartinfoster
I don't know what you're trying to do. MenuView extends ContentObjectView which extends AdaptView, router manages URL routing. I'm sure you'll find and answer in there somewhere.
Christine Bower
@chrisbean

Hi; I just installed adapt on my machine, but when I try to create my first course, I'm receiving the following error:

Oh dear, something went wrong. I'm terribly sorry. Response code 404 (Not Found)

(FYI I used Adapt for two years when I worked on a developer training team at Facebook, so I'm not new to the framework. The framework is just new to my current laptop!)

For fuller context, here's what's in my terminal. I'm trying to build a course named "Mastering GitHub" in a folder called "adapt" on my desktop

chrisbean @ MBP adapt % adapt create course "Mastering GitHub" develop
Confirm type (course)
Confirm name (Mastering GitHub)
Confirm branch/tag (develop)
Confirm create now? (y)
downloading framework to Mastering GitHub Oh dear, something went wrong. I'm terribly sorry. Response code 404 (Not Found)

Chetan Sachdev
@cksachdev
@chrisbean Sharing few steps:
Step 1: Install Adapt cli globally
npm i adapt-cli -g
Step 2: Run the following command to create a new course
adapt create course
There will be couple of inputs required to complete that
Step 3: Change to the course directory and run
npm i
Above command will install all the dependencies defined in package.json
Step 4: Ensure you have grunt-cli installed globally or just run
npm i grunt-cli -g
Step 5: Now run
grunt build
Above command if you just want to create a build for the course or open 2 terminal windows in the same course directory and run
grunt build dev
Above command will run a watch task in the course directory, so your code changes reflect in the browser
grunt server
This will launch the server and open your browser with localhost:9001 where you could view the course.
Christine Bower
@chrisbean
Thanks! I will try this now...
Can you confirm I should be running this in the folder where the framework is (vs where I want to develop the course)?
Or can I be anywhere in terminal?
Chetan Sachdev
@cksachdev
no, you can't be anywhere in terminal, An adapt course is a full-fledged nodejs application, so you need to be in the project directory/course directory
Christine Bower
@chrisbean
The course doesn't exist yet, so I should run this in the empty dir where I want it to go?
Chetan Sachdev
@cksachdev
yes, if you haven't created a course yet, follow those 5 steps and you should have a template course up and running
Christine Bower
@chrisbean
Got it. Will do.

Okay, here's what happened. Is it safe to sudo that first command, or do I need to navigate the bower thing?

adapt % npm i adapt-cli -g
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm WARN deprecated request@2.88.2: request has been deprecated, see request/request#3142
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/adapt-cli/node_modules/mime-db
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/adapt-cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/adapt-cli/node_modules/async
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/adapt-cli/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/adapt-cli/node_modules/grunt-legacy-util
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/adapt-cli/node_modules/mime-types
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules/adapt-cli/node_modules/mime-db
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/adapt-cli/node_modules/mime-db'
npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/adapt-cli/node_modules/mime-db'] {
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/adapt-cli/node_modules/mime-db'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/christinebower/.npm/_logs/2020-09-25T23_56_46_556Z-debug.log

Chetan Sachdev
@cksachdev
@chrisbean I would recommend not to do sudo. If you are on macOS, you can install node using nvm, which will install node in your user directory. And then you won't run into any permission issues.
https://github.com/nvm-sh/nvm
Christine Bower
@chrisbean
Pretty sure it's installed, but maybe not in user directory...
Yes. I'm running v12.18.4
Christine Bower
@chrisbean
Ok, now things are happening... thank you!