glennjones / be-more-hapi Goto Github PK
View Code? Open in Web Editor NEWA example site using HAPI - Built for Asyncjs talk
License: MIT License
A example site using HAPI - Built for Asyncjs talk
License: MIT License
Project needs linting to ES6 style
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)
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
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)
On line four of test/sums-test.js you require assert
but then on line six, you're replacing this with chai.assert
.
Is there a reason for this?
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!
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.