Giter Club home page Giter Club logo

hapi-boilerplate's People

Contributors

vietthang avatar

Stargazers

 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

Forkers

thangntt2

hapi-boilerplate's Issues

Please update to Hapi 17

Hello,

Any future plan to update boilerplate with Hapi 17 and latest Webpack and babel?

Thanks

Wrong seed data

Hello,
First let me say I think this is one of the best boilerplates I've found.
I noticed, however, the seed data contains some errors.

  • For some reason the knex insert method doesn't return the id, which makes all resourceIds variables be 0.
  • The rows for the Content table are missing the name which is a required property.

The second problem is easy to solve. The first can be fixed by creating the UUID before the insert. The problem is the original code should work, at least according to the knex docs. Are you able to reproduce the first issue?

The content resource fails validation

The content resource fails a validation check somewhere.
It could be the data field that saves an object.

[1] Debug: internal, implementation, error 
[1]     Error: Validation Error
[1]     at Object.responseFailAction [as failAction] (/home/nigel/Documents/hapi-boilerplate-master/node_modules/overjoy-swag/src/hapiIntegration.ts:60:14)
[1]     at request._protect.run (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/validation.js:213:45)
[1]     at module.exports.internals.Protect.internals.Protect.run (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/protect.js:62:12)
[1]     at postValidate (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/validation.js:210:26)
[1]     at Hoek.once (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/protect.js:52:16)
[1]     at wrapped (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/node_modules/hoek/lib/index.js:871:20)
[1]     at Object.validate (/home/nigel/Documents/hapi-boilerplate-master/node_modules/overjoy-swag/src/validate.ts:49:7)
[1]     at /home/nigel/Documents/hapi-boilerplate-master/node_modules/overjoy-swag/src/hapiIntegration.ts:80:51
[1]     at request._protect.run (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/validation.js:239:16)
[1]     at module.exports.internals.Protect.internals.Protect.run (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/protect.js:62:12)
[1]     at exports.response (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/validation.js:237:22)
[1]     at each (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/request.js:380:16)
[1]     at iterate (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/node_modules/items/lib/index.js:36:13)
[1]     at done (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/node_modules/items/lib/index.js:28:25)
[1]     at finalize (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/handler.js:21:16)
[1]     at Hoek.once (/home/nigel/Documents/hapi-boilerplate-master/node_modules/hapi/lib/protect.js:52:16)

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.