Thanks to https://github.com/drichard/mindmaps you can host your own copy of Mind Map like I did at

http://mindmap.waltercedric.com/index.html

image

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

and npm is the package manager for the Node JavaScript platform.&160; It puts modules in place so that node can find them, and manages dependency
conflicts intelligently. It is extremely configurable to support a wide variety of use cases. Most commonly, it is used to publish, discover, install, and develop node programs. (https://npmjs.org/)

Short How To

sudo apt-get install nodejs npm
wget https://github.com/drichard/mindmaps/archive/master.zip
unzip master.zip cd master
npm install
jake -f Jakefile.js

Now you can copy the content of the ./bin directory to any web root and you are good to go!

Longer version

These are all the error I havve encounter and how I did solve them

TypeError: Object #<Object> has no method 'existsSync'

This is because your version of nodejs is tool old: nodejs 0.6&160; moved path.existsSync to fs.existsSync, so if you're using an old version of node then fs.existsSync will be broken.

Check your current version of node.js

# nodejs –version

was returning v0.6.19 on my box

To update to the latest version v0.10.25, you’ll have to rely on an external ppa

sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

Now you should have the latest version of node.js

npm http 404 http://registry.npmjs.org/uglify-js&160;&160; npm ERR! registry error parsing json

Either set the registry to not use SSL globally

sudo npm config set registry http://registry.npmjs.org/

or specify the registry and get manually the required dependencies

sudo npm install uglify-js --registry http://registry.npmjs.org/
sudo npm install node-static --registry http://registry.npmjs.org/
sudo npm install -g jake --registry http://registry.npmjs.org/

npm WARN cannot run in wd

The Node.js&160; package manager ca not run in working directory

npm WARN package.json node-static@0.5.9 No repository field.
npm WARN prefer global jake@0.7.6 should be installed with -g
npm WARN cannot run in wd mindmaps@0.7.3 npm install -g jake (wd=/xxx/…)

You need to run npm as sudo or without permission checks

sudo npm install --unsafe-perm

a successful install should look like

sudo npm install 

npm WARN package.json node-static@0.5.9 No repository field. npm WARN prefer global jake@0.7.6 should be installed with -g > mindmaps@0.7.3 postinstall /mindmap/build > npm install -g jake npm http GET https://registry.npmjs.org/jake npm http 304 https://registry.npmjs.org/jake npm http GET https://registry.npmjs.org/utilities npm http GET https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/minimatch npm http 304 https://registry.npmjs.org/utilities npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/sigmund /usr/bin/jake -> /usr/lib/node_modules/jake/bin/cli.js jake@0.7.6 /usr/lib/node_modules/jake ├── This email address is being protected from spambots. You need JavaScript enabled to view it. └── This email address is being protected from spambots. You need JavaScript enabled to view it. (sigmund@1.0.0, lru-cache@2.5.0)

Last step is to run the jakefile with jake. The finished build will appear in /bin.

jake -f Jakefile.js
comments powered by Disqus

You might like also

Tiny-RSS update in background using SystemD
Before you can start using tt-rss properly, you have to tell him to update your feeds!  Here is the complete how to do it with SystemD Systemd is an init system used in Linux distributions to bootstrap the user space. Subsequently to booting, it is used to manage system processes. It is a replacement for the UNIX System V and Berkeley Software Distribution (BSD) init systems. The goal is unification of basic Linux configurations and service behaviors across all distributions Create a new file /lib/systemd/system/ttrss_backend.service with content [Unit]Description=ttrss_backendAfter=network.target mysql.service postgresql.service[Service]User=www-dataExecStart=/home/waltercedric.com/subdomains/rss/update_daemon2.php[Install]WantedBy=multi-user.target  And then run  systemctl …
455 Days ago
The 10 Myths of Entrepreneurship
This video show you how to do away with the ten myths of entrepreneurship -- and show how one can create a successful start-up business without money, business plan or even an idea. …
890 Days ago
I am feeling adventurous
How Instagram and Pinterest started … (Infographics) Click for a larger view I really love these infographics worth the visit http://fundersandfounders.com/ …
1009 Days ago
Roads Kill interactive map
The global road death toll has already reached 1.24 million per year and is on course to triple to 3.6 million per year by 2030. In the developing world, where this pandemic has hit hardest, it will become the fifth leading cause of death, leapfrogging past HIV/AIDS, malaria, tuberculosis and other familiar killers, according to the World Health Organization’s (WHO) most recent Global Burden of Disease study. This Interactive map use open source mapping technology from Mapbox. France 6.4 deaths …
1960 Days ago
Ninite: Install multiple application at once
With The release of Windows 7, you may face the issue that you have to reinstall a huge number of applications (time consuming and annoying). This is where Ninite, may help you installing your favorite apps again in no time. Visit Ninite site and pick the software apps you want to install and click “Get Installer” at the bottom of the page. Ninite runs on Windows XP/Vista/7 and works in the background 100% hands-free. Best of all, It is completely …
3377 Days ago
Online tool for webmaster: usability, performance, SEO
SEO This is an instant, free and no-registration tool to analyze the SEO performance of a URI for a given key phrase. Reports include a variety of useful information and structured recommendations to improve overall effectiveness. Try a few reports and judge for yourself. The tool aims to encourage the use of standards compliant, user-friendly and accessible code while at the same time helping website-owners to attract more visitors to their websites. Of course, no automated tool can substitute for …
3397 Days ago
Twitter meet Google Map
When Twitter use Google API, the result is http://www.twittervision.com/, a web 2.0 fun application. Watch people Twitting around the world on Google map in realtime, their API is available, so interacting with the service is easy (iPhone has one apps in itune store named: twittervision) …
3503 Days ago
Twitter mania set of icons for your site
&160; I did Install yesterday evening Tweetme Content Plugin It adds a button "Tweet This" to your Joomla articles. Its very simple, lightweight and looks good on any site. When your users discover content on your site and tweet about it, it will boost your site traffic. The plugin provides a fully integrated URL shortener and the story or page’s title. Each link which is posted on Twitter adds increments to the count on that story/article. and Twitter Follow Me …
3510 Days ago
CSS sprite generator online
Here is an useful tool for improving performance of your website: The CSS sprite generator takes a number of source images and combines them into a single "sprite" image and supplies CSS to map to each image within the sprite. The technique this tool employs is often used to improve the performance of a web site by reducing the number of HTTP requests that the client's browser needs to make. CSS sprites are a way to reduce the number of …
3530 Days ago
Searching a new design for your internet presence?
35589 web design screenshots online! Browsershots Showcase features more than 30,000 web designs for inspiration and they add 50-100 new entries every day. It's the largest and most updated web design & CSS gallery on the web. …
3531 Days ago