hoodiehq-archive/my-first-hoodie

Hoodie quick start using couchdb and node binaries and no local-tld

Closed this issue · 3 comments

Thought I would create this issue since it wasn't exactly straightforward to pick out these pieces from the current docs. Might be worth including somewhere?

Download/Install CouchDB http://couchdb.apache.org and Node http://nodejs.org then run the following commands:

npm install -g hoodie-cli
hoodie new myapp
cd myapp
COUCH_URL=http://localhost:5984/ hoodie start
janl commented

Thanks for your input, this helps a lot! :)

The COUCH_URL part isn’t quite right, hoodie will start a CouchDB for you, so you don’t have to use the system installed one (you will still need the binaries), you will get one under a custom port. The reason is that you can have multiple apps at the same time not conflicting each other that way.

But yes, we are curently streamlining the install docs and options.

I actually thought hoodie queried my couchdb somehow to find the path to the binary. It seems to work almost; I can push html changes to my app but not js changes, oddly enough. Haven't had time to go much further yet. I also have no idea where the data lives yet. Was thinking it would be nice if a data/ dir magically showed up with .couch files right in my project dir.

Thanks for all the great work on this, looking forward to some weekend projects with it.

gr2m commented

hoodie-server (previously known as hoodie-app) now creates a data folder in the app directory, as you suggested.

Feel free to open up more issues if you have any other questions / suggestions