In this sprint I learned how to set up a development environment for a fairly unfamiliar IDE and language, and I learned how to work with other people to work through issues in building a local copy of the AMPATH app. I struggled most in the latter with actually understanding the error messages and how to resolve them. I can take the difficulty I experienced with this process and use as a reminder in the future to more carefully pick through the error messages and try to resolve the conflicts myself. I was concerned about making changes to files or folders, even though the worst outcome would just be reverting back a version.
I think the team worked pretty well together on this sprint, although it’s a little early to tell. We were all working on the same thing (environment/app setup) which didn’t offer a lot of room for collaboration other than helping each other resolve problems. I think that we’ll get a better feel for our team dynamic in this upcoming sprint when we have more “real” work to do.
This sprint was primarily focused on getting the AMPATH app up and running on my local systems. I started by forking the repository from the group repo, then cloning it to my system. I then looked through the README and tried to follow the instructions. I must have done something incorrectly or in the wrong order, because I ran into missing dependencies (which should have been downloaded by npm). I then tried a variety of solutions to resolve the problems. I attempted to directly install the dependencies (didn’t work, due to a file/folder creation error). I deleted and checked out the project again (didn’t work either, same issues as before). I tried rolling back to older versions of Angular and npm, which was suggested by a couple of StackOverflow pages I found relating to similar errors (did not work, bricked my Angular install, had to reinstall). On the second or third try of just installing the dependencies (with a clean Angular install and project version), I managed to resolve the issue but then ran into a problem with the ladda module — it wasn’t in the right place for Angular to find it. I was stuck on that until Matt Foley found and posted a solution.
Once I had the solution to the ladda error, I reinstalled Angular again (just to be sure), worked in order through the steps outlined in the README, worked through Matt Foley’s fix, and wrote up the procedure I took as I went so that other people in my group and in the class could use it.
The prodecure boiled down to the following:
Run npm install, then install global dependencies, then npm install again to catch anything that might have been missed. Create copies of one of the ladda files in the directory Angular wanted to look for it in, and modify one of the ladda files to point to the proper directory.
From the blog CS@Worcester – orscsblog by orscsblog and used with permission of the author. All other rights reserved by the author.
