- Where do you compile your css? We use ExtractTextPlugin to extract compiled css in our webpack config file. Read more about postcss and Css modules here.
- What loaders do you use for ES6/ ES2015? babel-loader. Seriously, try it!
- Google Authentication does not work locally or on heroku!
- Follow these steps from Google to create your API keys on Google Developers Console
- Under APIs & Auth, Copy your Client ID and Client Secret
Dev
- For Google Auth to work locally, you need to do the following in your terminal before starting the server:
export GOOGLE_CLIENTID=YOUR_CLIENTID
export GOOGLE_SECRET=YOUR_SECRET
Heroku
- Fret not! Heroku's covered this pretty well:
heroku config:set GOOGLE_CLIENTID=YOUR_CLIENTID
heroku config:set GOOGLE_SECRET=YOUR_SECRET
heroku config:set GOOGLE_CALLBACK=YOUR_CALLBACK
- I do not know how to write React Components/anything in ES6. Help!
Google Analytics
Google Analytics are there if you want them and very easy to enable the basic site level support. All you need to do is replace the tracking ID in app/server.jsx
To learn about how to best use Google Analytics for your site read more here.