Git Product home page Git Product logo

be-more-hapi's People

Contributors

glennjones avatar kyleamathews 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

Watchers

 avatar  avatar  avatar  avatar  avatar

be-more-hapi's Issues

unexpected Identifier error

Getting the below error. node version v6.9.4 and npm version 6.4.1
async inject(options) {
^^^^^^
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\Arun\Projects\be-more-hapi\node_modules\hapi\lib\index.js:3:16)
at Module._compile (module.js:570:32)

Cache static files

Do you have a good approach for caching static files?
On your slides you seemed to have an approach, but I don't see it in this repo.
My current static serving is done like so:

 {
            method: 'GET',
            path: '/{param*}',
            handler: {
                directory: {
                    path: './client/dist/'
                }
            }
    }

Thanks in advanced.

David

Trying to get in touch regarding a security issue

Hey there!

I'd like to report a security issue but cannot find contact instructions on your repository.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

Types not shown for Joi.array().includes(type)

I've noticed on official Swagger example types are displayed for arrays. For some reason it's not working for the routes in the example, described the routes.js file.

Current model for /store:

List {
  items (array, optional),
  count (number),
  pageSize (number),
  page (number),
  pageCount (number)
}

Expected:

List {
  items (array[Sum], optional),
  count (number),
  pageSize (number),
  page (number),
  pageCount (number)
}
Sum {
    id (string),
    a (number),
    b (number),
    operator (string),
    equals (number),
    created (string),
    modified (string)
}

Thanks!

Server options

Hello

I had a problem with loading the server on a Windows 8 box due to issue with server options on line 12 and 13 of "bin/be-more-hapi file". I had to hack code like following for server to start.

var serverOptions = {
views: {
path: 'templates',
engines: { html: 'handlebars' },
partialsPath: './templates/withPartials',
helpersPath: './templates/helpers',
isCached: false
},
cors: true
};

Thanks
Simon

grunt, jshint

Hi,

Not sure if you know but the grunt will fail because of some of the indentation and a missing callback in store.js line 111.

If you didn't mean to, could you please leave it in as it is quite good for me and my devs to get used to grunt, maybe try out "fixmyjs" npm straight off the back.

Cheers.

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.