Code Monkey home page Code Monkey logo

react-hapi-ssr's Introduction

React Hapi SSR

A tiny robust boilerplate containing the following technologies

On the client side

Tech Description Learn More
React Fast, composable client-side components. Pluralsight Course
Redux Enforces unidirectional data flows and immutable, hot reloadable store. Supports time-travel debugging. Lean alternative to Facebook's Flux. Getting Started with Redux, Building React Applications with Idiomatic Redux, Pluralsight Course
React Router A complete routing library for React Pluralsight Course
React Cookie Universal cookies for React Medium Tutorial
Babel Compiles ES6 to ES5. Enjoy the new version of JavaScript today. ES6 REPL, ES6 vs ES5, ES6 Katas, Pluralsight course
Webpack Bundles npm packages and our JS into a single file. Includes hot reloading via react-transform-hmr. Quick Webpack How-to Pluralsight Course
ESLint Lint JS. Reports syntax and style issues. Using eslint-plugin-react for additional React specific linting rules.
npm Scripts Glues all this together in a handy automated build. Pluralsight course, Why not Gulp?

On the server side

Tech Description Learn More
Hapi A rich framework for building applications and services. EggheadIO Course
Hapi Auth Cookie A Hapijs cookie authentication plugin. Hapijs Tutorial
Inert Static file and directory handlers for hapi.js. Serving Static Content
Universal Cookie Express My own baked in version of this plugin located in Hapi React SSR's server/plugins directory. Translated from this original code
Serialize Javascript Serialize JavaScript to a superset of JSON that includes regular expressions and functions. Serialize used in Tyler Mcginnis SSR Tutorial

The starter kit includes a working example app that puts all of the above to use. This utilizes isomorphic javascript rendered from the server. Hapi React SSR attempts to manage data in a more robust way than most examples out on the web. In addition to serializing and storing data on the server I also manage data on the client using redux.

As an extra added bonus I included the minimum account functionality which I feel is required in order to start off ever application. It's super basic but does the trick.

I would like to give some credit to Tyler Mcginnis for two very super helpful tutorials (though I will point out that my example is slightly more up to date in react plugins):

Last but not least, I would also like to give much needed credit to Cory House for React Slingshot. His project was a critical reference when it came to setting up my redux. My project is not as nearly configured with npm scripts and testability so I would humply invite anyone who wishes to push my project further to go for it!


Questions?

Hit me up

react-hapi-ssr's People

Contributors

jonnydungeons avatar

Watchers

 avatar

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.