kidtronnix / hapi-dash

Boilerplate Hapi Web and API Server Example, with frontend dashboard.
hapi-dash.smaxwellstewart.com
MIT License
113 stars 19 forks source link

Error on npm install and run #1

Closed 58bits closed 10 years ago

58bits commented 10 years ago

Hey there - really interesting project.

Thought I'd let you know that on a clean install...

git clone https://github.com/smaxwellstewart/hapi-dash.git
cd hapi-dash
npm install

The installer ends with a hapi-ninja@0.2.0 postinstall:bower install` error.

Also on...

npm install -g pm2
node start.js

It errors on Error: Cannot find module './config'

58bits commented 10 years ago

okay - node configure.js setup config.js ;-)

Is there a default admin account? Or do you simply need to register at start?

58bits commented 10 years ago

There is also a dependency missing from package.json

npm install extend --save

kidtronnix commented 10 years ago

Thanks!

Firstly, looking into Bower error.

Secondly, yes you need to run node configure.js before you you can run the application.

Thirdly, will look into maybe setting up a default account if a flag is specified with configure.js, or perhaps a seperate seed.js file or something.

Fourthly, added express as dependency, will commit shortly.

Thank you for helping to improve this project!

Simon

58bits commented 10 years ago

Awesome! (but I think you mean extend and not express) :-)

kidtronnix commented 10 years ago

I do!

kidtronnix commented 10 years ago

Okay, the errors should be fixed. I removed the bower install as a postinstall script as currently bower is not being used in the project, though the app is setup to use it if required.

Please carry on making issues and/or suggestions, really appreciated.