Dashing - dashboard framework: Difference between revisions
Line 87: | Line 87: | ||
</source> | </source> | ||
=== Install === | |||
* Install the gem from the command line. Make sure you have Ruby 1.9 | === Install Dashing === | ||
* Install the gem from the command line. Make sure you have Ruby 1.9 (yep.. we do) | |||
<source> | <source> | ||
gem install dashing | gem install dashing | ||
</source> | </source> | ||
* '''remeber the script before''' -- we need to link the new installed gem '''dashing''' into /usr/bin/ | |||
<source> | |||
for f in /var/lib/gems/1.9.1/bin/* | |||
do | |||
filename=$(basename $f); | |||
if [ -e $filename ] | |||
then echo "$filename already exits"; | |||
else sudo ln -s $f $filename; | |||
fi | |||
done | |||
</source> | |||
* Generate a new project | * Generate a new project | ||
Line 98: | Line 113: | ||
dashing new sweet_dashboard_project | dashing new sweet_dashboard_project | ||
</source> | </source> | ||
* Change your directory to sweet_dashboard_project and bundle gems | * Change your directory to sweet_dashboard_project and bundle gems | ||
Line 104: | Line 120: | ||
bundle | bundle | ||
</source> | </source> | ||
* Start the server! | * Start the server! | ||
Line 110: | Line 127: | ||
dashing start | dashing start | ||
</source> | </source> | ||
* Point your browser at localhost:3030 and have fun! | * Point your browser at localhost:3030 and have fun! | ||
[[Category:How-to]] | [[Category:How-to]] |
Revision as of 15:41, 31 May 2013
Dashing
http://shopify.github.io/dashing/
Install Ruby 1.9.1 on Debian Squeeze
<source> sudo apt-get install ruby1.9.1-full </source> <source> cd /usr/bin ln -sf ruby1.9.1 ruby ln -sf gem1.9.1 gem ln -sf erb1.9.1 erb ln -sf irb1.9.1 irb ln -sf rake1.9.1 rake ln -sf rdoc1.9.1 rdoc ln -sf testrb1.9.1 testrb </source>
Ruby additional steps
- Install bundler gem ( I didn't have it, safe to run if you aleady have it)
<source< gem install bundler </source>
- Link all the binaries. We shouldn't have to do this since we used apt-get to install.. but whatever.
- This will allow you to run ruby, bundle, dashing, etc.. anytime you install a NEW gem, you might want to run this
<source> for f in /var/lib/gems/1.9.1/bin/* do filename=$(basename $f); if [ -e $filename ] then echo "$filename already exits"; else sudo ln -s $f $filename; fi done </source>
Install NodeJS
<source> sudo apt-get update && apt-get install git-core curl build-essential openssl libssl-dev </source>
<source> git clone https://github.com/joyent/node.git cd node
- 'git tag' shows all available versions: select the latest stable.
git checkout v0.9.5 </source>
- This is a step normally not documented, but required for the arm7 (dreamplug)
- modify file: node-vx.x/deps/v8/SConstruct
- You need to add -march=armv7-a
<source>
- You need to edit this file and modify
- line # 84 it should look like this:
'gcc': {
'all': { 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS', '-march=armv7-a'], 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], },
</source>
- Finish the compiling and install
<source>
- Configure seems not to find libssl by default so we give it an explicit pointer.
./configure --openssl-libpath=/usr/lib/ssl make
- prepare to wait FOREVER...
make test sudo make install node -v </source>
Install Dashing
- Install the gem from the command line. Make sure you have Ruby 1.9 (yep.. we do)
<source> gem install dashing </source>
- remeber the script before -- we need to link the new installed gem dashing into /usr/bin/
<source> for f in /var/lib/gems/1.9.1/bin/* do filename=$(basename $f); if [ -e $filename ] then echo "$filename already exits"; else sudo ln -s $f $filename; fi done </source>
- Generate a new project
<source> dashing new sweet_dashboard_project </source>
- Change your directory to sweet_dashboard_project and bundle gems
<source> bundle </source>
- Start the server!
<source> dashing start </source>
- Point your browser at localhost:3030 and have fun!