Skip to content

Latest commit

 

History

History
executable file
·
38 lines (27 loc) · 1.87 KB

FAQ.md

File metadata and controls

executable file
·
38 lines (27 loc) · 1.87 KB
  1. 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.
  2. What loaders do you use for ES6/ ES2015? babel-loader. Seriously, try it!
  3. Google Authentication does not work locally or on heroku!
    1. Follow these steps from Google to create your API keys on Google Developers Console
    2. 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
  1. I do not know how to write React Components/anything in ES6. Help!
    • Don't you worry child. Read this.
    • You can learn more about ES6 (or ES2015) here.

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.