Skip to content

Developer Instructions

Barry Becker edited this page Apr 18, 2014 · 9 revisions

If you are making small changes, you can copy the individual .gs pages into a new google apps script that you create on your google drive. If you want to make a lot of changes, consider the steps below so that you can work from eclipse and make commits back to github easily. Unfortunately, the google plugin seems to have some limitations that make if hard to work on a project that someone else has started. Let me know if you have any trouble with the steps below.

If you want to streamline your development, it is recommended that you follow these instructions to install Eclipse, the Google Plugin, the Javascript Development tools, and the Git plugin so that you can make changes and commit directly from within Eclipse.

  1. Install Git if you have not already done so.
  2. Clone the tutormatch repository with git clone https://github.com/barrybecker4/TutorMatch.git.
  3. rename it to TutorMatch_bak. And create a new empty TutorMatch directory. You'll see why this is necessary shortly.
  4. In Google Docs, create a new Google app script called "LoganTutorMatchApp". It has to have that name.
  5. In eclipse, do file | import | "Google Apps Script Project" and select the project you just created. Make sure you uncheck the "use default location" at the bottom and select the empty TutorMatch directory next to where you have the cloned repository.
  6. This is the tricky part. We want to overlay everything that is in TutorMatch_bak into TutorMatch keeping the structure the same and not disturbing any of the files already in that directory. You can delete the Code.gs file that was in the script that created initially on your Google drive.
  7. Restart eclipse. Right click on the TutorMatch project and verify that Git integration is now working. Hopefully it will now sync the files with your google drive, and allow you to use git for revision control. There is a possibility that you may have to do team | share to get it synch'd with the git repo.
Clone this wiki locally