GithubHelp home page GithubHelp logo

kidtronnix / hapi-dash Goto Github PK

View Code? Open in Web Editor NEW
113.0 113.0 19.0 2.9 MB

Boilerplate Hapi Web and API Server Example, with frontend dashboard.

Home Page: hapi-dash.smaxwellstewart.com

License: MIT License

Makefile 0.01% JavaScript 55.80% CSS 7.72% HTML 36.46%

hapi-dash's People

Contributors

jon-whit avatar kidtronnix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hapi-dash's Issues

The core cred

A cool project.

Can you please tell what is the credentials for core? Or how do i simply change it to something else?
somewhere here in config.js?
"coreCreds": {
"id": "core",
"key": "9TKUwfKHIkNbF9XbGdDudA3fiXzxJg4tHATYJrr16vMENNyX9UUvbNkeeRRxQHC9",
"algorithm": "sha256"
}

Thanks. I am already in process to build an app with this ๐Ÿ‘

Deprecation Notice

This project is officially deprecated. But never fear i have a new project lummox.

The reasons for switching to this new project is that it aims to be a more reusable and flexible component to manager users, and provide a simple dashboard UI.

It also has the key benefit of having 100% code coverage. I hope this will make the code much easier to maintain in the future.

Any feedback is greatly appreciated.

Best way to add a few more features

I'm new to node/hapi etc and am looking for some advice;

  1. Can you post a sample of how to authenticate (perhaps using curl) before calling any of the api server methods?
  2. I want to allow my users to authenticate on the gui using fb/twitter etc, whats the best library to use with this hapi project? Bell/passportjs? Feature request: please add functionality to allow fb/twitter auth.

What are the benefits of using a separate server for api & gui?

It seems to me like this type of setup adds a lot of complication to the application.

You can separate concerns via a plugin or exposing functionality to your app with plugin.method or server.method without need to make and authenticate an http request.

I just want to know if there's something I'm missing as far of the benefits of setting up the api as another server so I can decide what is the right route to take for my application.

Thanks and good work on the application!

can't start success

{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }

Upgrade to hapi8

I realize there may be little impetus to do this, but I figured I'd make an issue to get hapi up-to-date, especially with hapi9 coming-out before long!

User Registration Mailing

First off, great work on this project! It's going to allow me to get a configuration dashboard up and running with very little effort. Thanks for all your work.

Problem: I am unable to register new users. I get the message "Success! An activation email has been sent to you.", but I do not receive and email.

Is there a configuration setting that I am missing?

Throws when configuring mongo host

Mongo host: (127.0.0.1) 
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at ReadStream.EventEmitter.addListener (events.js:179:15)
    at ReadStream.Readable.on (_stream_readable.js:667:33)
    at new Interface (readline.js:124:11)
    at Object.exports.createInterface (readline.js:38:10)
    at read (/Github/hapi-dash/node_modules/prompt/node_modules/read/lib/read.js:45:23)
    at EventEmitter.prompt.getInput (/Github/hapi-dash/node_modules/prompt/lib/prompt.js:502:3)
    at get (/Github/hapi-dash/node_modules/prompt/lib/prompt.js:321:12)
    at /Github/hapi-dash/node_modules/prompt/lib/prompt.js:280:7
    at iterate (/Github/hapi-dash/node_modules/prompt/node_modules/utile/node_modules/async/lib/async.js:134:13)
    at /Github/hapi-dash/node_modules/prompt/node_modules/utile/node_modules/async/lib/async.js:145:25

Can't start

Hi!

I did all from your instructions, but can't run server:

MacBook-Air-Artem:hapi-dash artyom$ node bin/start.js
module.js:339
    throw err;
    ^

Error: Cannot find module '../config'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/artyom/projects/hapi/hapi-dash/bin/start.js:2:14)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
MacBook-Air-Artem:hapi-dash artyom$ node servers/api/server.js
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
module.js:339
    throw err;
    ^

Error: Cannot find module '../../config'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/Users/artyom/projects/hapi/hapi-dash/servers/api/server.js:7:14)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Function.Module.runMain (module.js:467:10)
MacBook-Air-Artem:hapi-dash artyom$

Env:

OS X 10.10.5
node 4.2.1
npm 3.3.12

Any chance to see this project working with last hapi.js and other modules version?

Error on npm install and run

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 [email protected] postinstall:bower install` error.

Also on...

npm install -g pm2
node start.js

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.