Profile cover photo
Profile photo
David Canning
42 followers
42 followers
About
David's posts

Post has attachment
MERN Series Step 7 - Job models and components
Ok, finally got past
the stupid webpack issue that was causing a complete gulp fail.   You need to add one more require at the top,
and modify the webpack task: const path = require ( 'path' ); gulp . task ( 'webpack' , cb => { webpack ({ entry: './app/scri...

Post has attachment

Post has attachment
MERN Series Step 5 - Auth0 React Client Template
Reviewing the link from last time, https://auth0.com/docs/quickstart/spa/react , let's see what the create-react-app scripts get us. This also led me to the link for the facebook create-react-app scripts: https://github.com/facebookincubator/create-react-ap...

Post has attachment
MERN Series Step 6 - Auth0 with Tech-Dojo
With the copying of
files from the create-react-app auth0 scripts our tech-dojo mern app still runs
fine, and the tests all run as well, except for the one that was failing at the
start (1) should fail to save an existing user again).  Don't forget to have ...

Post has attachment
"React components, do you need class to do them properly?" or "local state, It's a trap!"
So, I'm looking at https://facebook.github.io/react/docs/state-and-lifecycle.html and how React has leveraged the class construct and hierarchy in encapsulating the clock class in the example. I'm wondering, is the class construct necessary, and I'm very mu...

Post has attachment
MERN Series Step 5 - Auth0 React Client Template
Reviewing the link from last time, https://auth0.com/docs/quickstart/spa/react , let's see what the create-react-app scripts get us. This also led me to the link for the facebook create-react-app scripts: https://github.com/facebookincubator/create-react-ap...

Post has attachment
MERN Series Step 4 - Authentication with Auth0
https://auth0.com/docs/overview They have a great intro video, watch it. Our starter project already came with passport, so we'll just need to add passport-auth0 and express-session: Yarn add passport-auth0 express-session auth0-lock Looking at the architec...

Post has attachment
MERN Series Step 3 - Which client app
After looking at the
two clients, one from generator-webapp and the other from tech-dojo's starter
repo, I'm going to go with the app from tech-dojo, as it's structure is laid
out for react components and services, vs generator-webapp is pretty generic and
...

Post has attachment
MERN Series Step 2 - MongoDB and yomern
MongoDB
installation guide is located here:  https://docs.mongodb.com/v3.0/installation/ .  I am a big
fan of chocolatey, so I'll be using chocolatey command line to install it: choco install -y mongodb . Some handy mongodb
commands: https://docs.mongodb.co...

Post has attachment
MERN Series Step 1 - Scaffolding and setup
I'm going to write a series on creating a MERN stack application (MongoDB, Express, React, Node) from scratch to deployment and maintenance.  Why am I going with React instead of Angular?  Well, I've learned some ng1.x with node.js backend, and I like it, a...
Wait while more posts are being loaded