Skip to content
thinq4yourself edited this page Oct 15, 2014 · 1 revision

Git Workflow

The Git workflow is the defacto method in which to code, test, build, and deploy the hopstack application(s). By using advanced techniques, such as Grunt, Yeoman, and Bower, we have simplified and automated the workflow using standard Git workflow (pull, add, commit, push).

Cloud Workflow (Codio)

As of July 15 2014, the below git instructions for cloud workflow should be done in the Codio IDE's Terminal, and it reflects a mirror of the process on your local sandbox. However, several commands in the Run and Tools->Git menus in the cloud IDE offer point and click executions of these commands, without having to leave the IDE and go to Terminal. Please note that the configuration of these commands in the cloud IDE menu system are experimental at this time, and may not always be as reliable as Terminal.

  1. $ git pull origin master
  2. Build, create, test, and code things
  3. $ grunt test you wrote tests (because you are a craftsman), and this runs them before building
  4. $ grunt server to launch the built-in node web server, running angular app via LIVERELOAD on port 3000
  5. Verify the app launched - Done, without errors. Browser window will automatically open to localhost:3000
  6. In your terminal, type crtl+C to kill the Running "watch" task seen on the screen
  7. Fix, add, or remove some more code to make it awesome (assumes no errors prevented the build)
  8. $ grunt server to see how awesome it is now at [localhost:3000]http://localhost:3000)
  9. $ git add -all
  10. $ git commit -m "your commit notes"
  11. $ git push origin master

Local/Sandbox Workflow

  1. $ git pull origin master
  2. Build, create, test, and code things in the application directory ./client
  3. $ grunt test you wrote tests (because you are a craftsman), and this runs them before building
  4. $ grunt server to launch the built-in node web server, running angular app via LIVERELOAD on port 3000
  5. Verify the app launched - Done, without errors. Browser window will automatically open to localhost:3000
  6. In your terminal, type crtl+C to kill the Running "watch" task seen on the screen
  7. Fix, add, or remove some more code to make it awesome (assumes no errors prevented the build)
  8. $ grunt server to see how awesome it is now at [localhost:3000]http://localhost:3000)
  9. $ git add -all
  10. $ git commit -m "your commit notes"
  11. $ git push origin master
  12. OPTIONAL: For sysadmins and leads with access, $ git push codio master to deploy to Codio dev
  13. OPTIONAL: For sysadmins and leads with access, $ git push heroku master to deploy to Heroku stage

Ungit Workflow

The Ungit workflow is a new method in which to code, test, build, and deploy the hopstack application(s) using a ore visual approach. By using even more advanced techniques, such as Ungit, Grunt, Yeoman, and Bower, we have simplified and automated the workflow using standard Git workflow (pull, add, commit, push) using an open source toolset called Ungit. To learn more about Ungit, check out our setup instructions.

Cloud Workflow (Codio)

Coming Soon.

Local/Sandbox Workflow

Coming Soon.

Clone this wiki locally