eseom / hapi-react-fullstack-boilerplate Goto Github PK
View Code? Open in Web Editor NEWHapi, Sequelize, React, etc.
License: MIT License
Hapi, Sequelize, React, etc.
License: MIT License
Once again, thanks for the fantastic boilerplate! I've already integrated your Hails project locally (kind of a must if I want control over your abstraction, sorry :( ) and updated most packages to newer versions.
I think the most common production situation is a clear separation between frontend and backend servers. That is, I don't need to shutdown the backend API to make tweaks to my frontend (and it's own Hapi SSR server). I know you're doing something with Hails which already encapsulates the API server from the SSR part of the server, but I think being able to run them on different servers (physically, API on server 1, SSR server on 2) is better aimed at "production-ready".
I'll have to figure this out myself, any pointers would be welcome, I'll eventually get it :)
Thanks again!
First off -- nice repo! Really digging the code structure.
One thing I'm mainly confused about is hails. So it seems like it's something you rolled on your own, and you reference it in this project. Specifically for some db migrations instead of using sequelize
directly. (e.g. : sequelize model:create --name Test --attributes name:string,description:text
).
If I ran that command in the root directory, I'd get something like:
Unable to find models path (/Sites/hapi-react-fullstack-boilerplate/db/models). Did you run sequelize init?
I couldn't find out where hails was specifically calling sequelize init
, so I'm curious how it works without calling sequelize init
?
+1 million, been looking for a modern example! Thanks for this fork, it's been a tremendous help!
I download and cannot make yarn install
yarn install v1.3.2 [1/5] Validating package.json... error [email protected]: The engine "node" is incompatible with this module. Expected version "8.0.0". error [email protected]: The engine "yarn" is incompatible with this module. Expected version "0.24.5". error Found incompatible module info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
My Installed package 's version:
node: 8.9.1 npm: 5.5.1 yarn: 1.3.2
So please tell me what I need to do to install
Tks all
Running into the following errors both when hitting https://hapi-react-fullstack-bp.herokuapp.com/chat:
Uncaught (in promise) TypeError: socket.on is not a function
As well as this one:
Uncaught TypeError: socket.emit is not a function
when trying to submit a message in the chat.
I see that you are setting a global variable here:
which you reference in Chat.js:
, but is it not getting instantiated properly with:const wsUrl = `ws${window.location.protocol === 'https:' ? 's' : ''}://${window.location.host}`
global.socket = connectNes(store, wsUrl)
?
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.