Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
fork/clone master branch: [email protected]:ctrlplusb/react-universally.git | |
cd [your-repo] | |
npm install | |
touch .slugignore | |
echo yarn.lock >> .slugignore | |
edit config/index.js |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
A good summary for ES6 features: | |
https://ponyfoo.com/articles/es6 |
// Find this on codepen http://codepen.io/miteshninja/full/gMMrmo/ | |
// Code refactored by @barneycarroll | |
var app = {}; | |
var api = "https://en.wikipedia.org/w/api.php?format=json&action=query&generator=search&gsrnamespace=0&gsrlimit=10&prop=pageimages|extracts&pilimit=max&exintro&explaintext&exsentences=1&exlimit=max&gsrsearch="; | |
var cb = '&callback=JSON_CALLBACK'; | |
var wPage = "https://en.wikipedia.org/?curid="; | |
app.WikiPages = function (title) { | |
return m.request({ |
define([ | |
'marionette', | |
'handlebars', | |
'modules/accountsData/views/pie', | |
'modules/accountsData/views/table', | |
'text!modules/accountsData/templates/wrapper.html', | |
], | |
function(Marionette, Handlebars, pie, table, tmpl) { |
define([ | |
'jquery', | |
'underscore', | |
'backbone', | |
'marionette', | |
'handlebars', | |
'text!templates/app_view.html', | |
'modules/mainMenuView/mainMenuView', |