Developing the Shell App
The shell app is significantly different from the dashboard app. It is purely a node.js app.
This means that we only need to use npm to build and do development work.
Create a Development Shell
clonethe OOD repository into:cd ~/ondemand/miscthengit clone git@github.com:OSC/ondemand.gitWork out of the
devdirectory/space:cd ~/ondemand/dev/.Symlink to the
shellapp in the cloned repository:ln -s ../misc/ondemand/apps/dashboard/shell/ shellMake a branch and to begin word on your development dashboard:
git checkout -b dev_workRebuild the
shellapp:bin/setup.Navigate to the Sandbox and launch your development
shellapp to use thedev_workbranch.
Notice the url for this app. No longer do you see */sys/shell but instead */dev/shell.
Build Old Version of Shell
pull down ondemand in
~/ondemand/miscthen list versions with
git tagsrun
git checkout <version>now make a branch with your changes and use
bin/setupto rebuild if needed
Then for the shell app from a login terminal run:
cd devln -s ../misc/ondemand/apps/dashboard/shell/ shell-18
And then step into that symlinked directory and run:
#. bin/setup
If you go start this app from sandbox you'll notice a different URL than before,
showing you are in a development shell: pun/dev/shell-1.8
Issues and Errors
Ensure you are using the correct version of Node when you go to build using nvm if possible. Sometimes
this can be set automatically for you in your .bashrc so just ensure you are on the version you should
be when you run bin/setup.
Develop the Shell
At this point we have a working development shell and can start to make changes to this code and issue rebuilds
for npm with bin/setup when needed.