Skip to content

Instantly share code, notes, and snippets.

@Acconut
Last active December 16, 2015 05:19
Show Gist options
  • Select an option

  • Save Acconut/5383324 to your computer and use it in GitHub Desktop.

Select an option

Save Acconut/5383324 to your computer and use it in GitHub Desktop.
Hoodie on Windows and Linux

Hoodie on Windows and Linux

This guide will help you to use hoodie on windows and linux.

Before we start you'll need following dependencies installed:

  • node
  • npm
  • git
  • couchdb

First you need to set some environment variables. To do that find your couchdb installation directory (e.g. D:\AwesomeStuff\CouchDB). After that add those two variables (where PATH is your couchdb installation directory):

  • COUCH_BIN: PATH/bin/bin
  • COUCH_DEFAULT_INI:PATH/etc/couchdb/default.ini

Then you need to install local-tld.

[sudo] npm install -g git://github.com/mdlawson/local-tld.git#crossplatform

Then we need the hoodie cli.

[sudo] npm install -g hoodie-cli

Now we can create our app (myhoodieapp is our app's name):

hoodie new myhoodieapp

After that you'll need to start the local-tld server (as admin).

[sudo] local-tld start

Now you're ready to rumble and run hoodie. Go to your hoodie installtion folder (myhoodieapp) and start it:

hoodie start

You'll maybe asked for a password. Just enter one and remember it!

So now you're hoodie app should be set up and you can try it at myhoodieapp.dev. Enjoy!

Tons of thanks to mdlawson!

Last update: 07/13/2013 (1373746028208)

Todo

  • local-tld for windows
  • node-multicouch for windows (to be merged)
  • hoodie cli in node.js
@jbeard4

jbeard4 commented May 29, 2013

Copy link
Copy Markdown

hoodie new myhoodieapp mdlawson/my-first-hoodie now succeeds on Ubuntu, but hoodie start fails with the following error:

jacob@jacob-ThinkPad-W520:~/tmp/myhoodieapp$ hoodie start

> myhoodieapp@1.0.0 start /home/jacob/tmp/myhoodieapp
> node node_modules/hoodie-app/bin/start


.d$b.  .d$b.  .d$$$$$$b.    .d$$$$$$b.  .d$$$$$$b.  .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P'  'Q$P'  'Q$$$$$$P'    'Q$$$$$$P'  'Q$$$$$$$P  'Q$P''Q$$$$$$$$P'

 Hi!


/home/jacob/tmp/myhoodieapp/node_modules/hoodie-app/node_modules/local-tld/lib/servicemanager.js:84
    throw new Error("Not implemented");
          ^
Error: Not implemented
    at Object.<anonymous> (/home/jacob/tmp/myhoodieapp/node_modules/hoodie-app/node_modules/local-tld/lib/servicemanager.js:84:11)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/home/jacob/tmp/myhoodieapp/node_modules/hoodie-app/node_modules/local-tld/lib/local-tld.js:1:77)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
npm ERR! myhoodieapp@1.0.0 start: `node node_modules/hoodie-app/bin/start`
npm ERR! `sh "-c" "node node_modules/hoodie-app/bin/start"` failed with 1
npm ERR! 
npm ERR! Failed at the myhoodieapp@1.0.0 start script.
npm ERR! This is most likely a problem with the myhoodieapp package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/hoodie-app/bin/start
npm ERR! You can get their info via:
npm ERR!     npm owner ls myhoodieapp
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-38-generic
npm ERR! command "/home/jacob/.nvm/v0.8.23/bin/node" "/home/jacob/.nvm/v0.8.23/bin/npm" "start"
npm ERR! cwd /home/jacob/tmp/myhoodieapp
npm ERR! node -v v0.8.23
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/jacob/tmp/myhoodieapp/npm-debug.log
npm ERR! not ok code 0

It looks like it's trying to start local-tld, and failing because local-tld is not implemented on Linux.

@Acconut @mdlawson am I missing something? Thanks.

@janl

janl commented May 30, 2013

Copy link
Copy Markdown

cc @caolan

@mdlawson

Copy link
Copy Markdown

hopefully fixed with mdlawson/local-tld@42bd4d6

@Acconut

Acconut commented May 31, 2013

Copy link
Copy Markdown
Author

@jbeard4 You need to install the latest version of local-tld, obviously:
npm install -g git://github.com/mdlawson/local-tld.git#crossplatform

@omrqs

omrqs commented Jun 12, 2013

Copy link
Copy Markdown

You are need type command as root (sudo).

I Got It! Good Luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment