Picture of Raffaele Di Meo
Saving contents
by Raffaele Di Meo - Friday, 7 July 2017, 3:52 PM
 

Hi There,

I have managed to install the Adapt Framework on my Mac. I do not have much technical skills, but surprisingly I found this very easy.

I am now editing the demo course contents to create my first course, but every time I save my contents and load the page, nothing happens. I am using brackets to edit the .json code and opening it with safari running the grunt build script.

Is there anything that I am missing or doing wrong?

Thanks,

Raff

Picture of Oliver Foster
Re: Saving contents
by Oliver Foster - Friday, 7 July 2017, 5:26 PM
 

you need a webserver to put the content on. most browsers won't allow ajax requests to the file system (except firefox) so Adapt won't be able to load its libraries and data from the hard drive.

i'd recommend using apache as your webserver, you can either install it straight onto your mac or go download anvil, mamp or xampp for mac if you don't know how to get a server up and running.

or use node in a second terminal window and run: grunt server 

 

 

Picture of Anne Seller
Re: Saving contents
by Anne Seller - Friday, 7 July 2017, 10:16 PM
 

Hi Raffaele,

I am a newbie as well, but I found the following works really well for me (please note that I use a PC so I'm not sure if this works well on a Mac):

1. I get the course up and running in my browser (i.e. access the command line as an Administrator (type cmd and then press ctrl-shift-enter); change the directories until I am in the directory containing my course; type "grunt build" and then "grunt server")

2. I then open GIT CMD (which I had previously installed), go to the correct directory and then type "grunt dev". After it has done its thing, you will see the word "Watching..." at the bottom. This is good.

3. I then edit my json and other files in Brackets, type ctrl-S to save the changes as I go, and then refresh my browser to see the changes.

I'm not sure if this is the cleanest way to work, so I welcome any comments from Oliver or others, but it works well for me. I hope this helps!

Cheers, Anne

Picture of Fabio Beoni
Re: Saving contents
by Fabio Beoni - Sunday, 9 July 2017, 6:20 AM
 

Hi,

unless you really want to get familiar with the code, the best way to create a course is using the Adapt Authoring tool. It's pretty easy to install it.