In this blog post I will mainly discuss on how I set up the development environment for Moodle Mobile v 2.0 in my computer. Actually this took approximately week and half . I am a windows user and when I tried setting up it in my windows 7 , it did not work. I tried , tried thinking that I would fly someday but could not actually take off until I shifted my track to Ubuntu. So I have made up computer to dual boot both the Ubuntu and Windows. In this post I will be explaining how to set up your development environment in Ubuntu 14.04 .
When setting up the environment, first we need to set up the Moodle web site instance in our machine. The newest version, 2.9 of moodle should be installed in your machine.
By going through this you will able to install the latest version (2.9) of Moodle in to your Ubuntu environment.
After installing and making Moodle Up and running, then you have to install "the Moodle Mobile additional features plugin for Moodle 2.9 ". By going through this link , you will be able to successfully install it.
Then fork the repository from https://github.com/moodlehq/moodlemobile2 and clone the forked repository to the computer.
So now we are left with setting up the Moodle Mobile. By following the below described steps, you will be able to successfully set up Moodle Mobile in your Ubuntu environment.
Steps
- Installing nodejs to the computer
- Install ionic and cordova to the computer
Go to the terminal and use this command sudo npm install -g ionic to install ionic and sudo npm install -g cordova to install cordova. This will install ionic and cordova in your computer.
- Adding platforms
- Adding all the plugins listed in the package.json file
- Installing the dependencies
- Installing 3rd party libraries .
- Creating JS file bundles
- Running moodle mobile v 2.0
Then type ionic serve to start the ionic server in localhost:8100 . Moodle mobile will be run on this.
So now we have finished setting up the development Environment for Moodle Mobile v 2.0. Now the coding begins. In the next post I will be discussing about the first component I started developing. Till then see you guys and Happy Coding. :D