hapijs-edge / hapi-plugins.com Goto Github PK
View Code? Open in Web Editor NEWSearchable database of hapi plugins!
Home Page: https://hapi-plugins.com
License: ISC License
Searchable database of hapi plugins!
Home Page: https://hapi-plugins.com
License: ISC License
I've noticed the hapi-plugins.com website is down and is returning a 502 bad gateway nginx error.
I am using eslint-config-hapi also
Parsing error: Unexpected token is generated from the function =>
It has something to do with the async
const create = async (request, reply, sequelizeModel,createObject) => {
code...
}
Hi there
I've just bought 'Developing a Hapi Edge' and am making my way through it, great so far!
I work with a lot of people who are relatively new to coding (as a mentor at Founders & Coders) and although I know this book isn't meant for beginners, it's not always apparent where code changes are being made.
It might make the book more accessible to a wider audience if you had a branch for each chapter, including the files that have been built up throughout that chapter. This is because code written in chapter 2 will have been changed throughout the book so there isn't always a reference point near the beginning.
If you're interested in implementing this, I'm happy to help out. Just a thought ๐
schemas: plugins and user, likes go in user
I just got done reading the Developing a hapi Edge book, and its a great book! I had a question about loading routes with Confidence though
In some examples in the book, you setup the API and HTTP servers on different ports, and thats what I'm trying to do. Im also using ConfidenceJS to manage the config.
In my confidence.json file, I'm trying to load two different route files. One will have the api
label selected, which will also have a prefix setup in the options to prefix all the route paths, and bind it to the port assigned to the api label inside the connections settings. The other will have the http
label, which should bind it to the http port.
I didn't see anything in the book that shows how to split the routes up so you can apply different settings/labels to them via confidence. If they cant be split up, then how can I assign different labels and options?
When I run the dist/app.js
via node, it starts up and doesn't throw any errors, however, it doesn't bind to either the http port (8001), or the API port (8000), and no routes are loaded. But when I remove the http-routes
plugin from the confidence config, and restart the service, it starts fine and listens on both ports, but only the API routes are loaded (obviously)...
Im not sure what im doing wrong here. My goal is just to have different routes loaded for different ports/labels, and with different options (So I can apply a prefix to the API routes)
plugins and user, likes go in user
Hi @thegoleffect,
I've created this separate issue (which is linked to #43) to split my task out from yours because:
Thank you!
plugins and user, likes go in user
ORM library TBD:
From daniel:
with a 1 day cache time
need wreck models for gathering npm info, stats by module name
using #5, need a function that grabs npm modules that match following criteria:
hapi-
)Use this to auto populate the database(s) ... when the models are finally completed.
Not sure if this is the right place for this but in the section of chapter 3 discussing route prerequsites, the code example shows two arrays for pre but I think it's supposed to be mixed with an object to demonstrate the serial/parallel difference.
I bought the book and tried to install the code and run it (I am running windows). I get the following error:
c:\server\www\hapi-plugins.com>npm run start
[email protected] start c:\server\www\hapi-plugins.com
node index
module.js:339
throw err;
^
Error: Cannot find module 'mongodb/node_modules/bson'
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. (c:\server\www\hapi-plugins.com\node_modules\mongoose\lib\drivers\node-mongodb-native\objectid.js:8:16)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Module.require (module.js:366:17)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "start"
npm ERR! node v5.0.0
npm ERR! npm v3.3.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index'.
npm ERR! This is most likely a problem with the hapi-plugins.com package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index
npm ERR! You can get their info via:
npm ERR! npm owner ls hapi-plugins.com
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! c:\server\www\hapi-plugins.com\npm-debug.log
c:\server\www\hapi-plugins.com>
Please help.
Thanks,
Scott
Still todo:
When user clicks on a search result, it should load a page displaying more information about the plugin:
What other info should it include?
then use bower to install this app (through github), bind the webpack build step to the bower repo for the app
when you resize browser to mobile widths or view on mobile, columns don't shift properly due to the float: right
. Need to do it the "correct" way.
On search, it is iterating through the results and making an HTTP request to get updated downloaded counts. If this was cached and stored with the plugins, the search function could be significantly faster.
Looking for someone to take this over.
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.