poeticninja / hapi-ninja Goto Github PK
View Code? Open in Web Editor NEWBoilerplate Hapi server example. Node.js, Hapi, and Swig.
License: MIT License
Boilerplate Hapi server example. Node.js, Hapi, and Swig.
License: MIT License
Is it impossible to reference a Hapi plugin in a controller's handler? If so, that seems like an issue. Is there any way around this?
Hi, I'm using your project structure and find that very helpful. Can you advice me on how would you structure this project adding mongoose integration.
I would need to use models' logic in controllers. Could you help me on that?
Your repo looks great. Unfortunately, I'm not able to start the server due to the following message:
Error: Cannot find module './server/database/index.js'
And upon looking at the 'server.js' file, it appears that the file is also requesting the 'index.js' file from the 'notifications' folder, of which also does not appear to exist in your 'hapi-ninja' folder structure. Any suggestions?
Hi,
I've followed the installation on a Windows machine.
I'm getting the following..
C:\boliderplate>node server
Server started at: http://0.0.0.0:3000
140407/093141.856, request, http://0.0.0.0:3000: get / {} 200 (31ms)
events.js:72
throw er; // Unhandled 'error' event
^
Error: EISDIR, write
Hey Saul (+contributors),
Love the project. Found it an amaxing tool. I loved it so much I used it in a new project.
CODE
https://github.com/smaxwellstewart/hapi-dash
DEMO
hapi-dash.smaxwellstewart.com
I joined hapi-ninja to a free template theme and added realtime messaging (Socket.IO) and out-the-box authentication. I used form based authentication for a frontend server and Hawk authentica for an API server.
There are also out-the-box configurable RESTful endpoint for doing basic CRUD of resources into MongoDB.
I am deploying a little differently in terms of starting up the servers, as i use pm2.
I could not of done this without your brilliant project, so thank you. I felt the goal of my stack was too different and a little experimental to try and maintain forks. But I am happy to conribute any stuff of 'hapi-dash' into 'hapi-ninja.
Lastly, if any contributors find any bugs, don't hesitate to open an issue, would be really appreciated.
Open-source love,
Simon
It's not a bug, but might be a typo.
The routes
module (server/config/routes.js
) is passed the server
object (in the main server.js
module). However server
is not used in routes
. That module is just returning the route table (an array with the route configurations).
I believe we should have
server.route(routeTable);
in server/config/routes.js
instead of server.js
, no?
How can i create models? What ORM do you use?
As the title says, im having trouble making this setup work on heroku. Any ideas why it says it cant find index.html ?
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.