gem 'rspec-rails', '~> 3.5'
gem 'capybara'
end```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
-
https://www.fullstackreact.com/articles/how-to-get-create-react-app-to-work-with-your-rails-api/ Awesome blog post for setting up a decoupled app with rails API.
-
https://online.reacttraining.com/p/reactjsfundamentals AMAZING FREE course that covers webpack, npm, and how to set up a project among other things.
-
https://www.fullstackreact.com/ FREE first chapter (I have the book if you like the first chapter).
-
https://teamtreehouse.com/library/react-basics Geat course that explains react concepts really well with great animated examples
-
https://www.codecademy.com/learn/react-101 Really really good into to JSX and how to write compoenents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku login | |
heroku create APP_NAME | |
git remote -v | |
git push heroku master | |
heroku addons:create heroku-postgresql | |
heroku run rake db:migrate | |
heroku run rake db:seed |
As configured in my dotfiles.
start new:
tmux
start new with session name:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i -D yargs gulp-load-plugins gulp-if gulp-print jshint-stylish gulp-util | |
npm i -D gulp-less gulp-autoprefixer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function () { | |
var config = { | |
// all js to vet | |
alljs: ['*.js', 'src/**/*.js'] | |
}; | |
return config; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var args = require('yargs').argv; | |
var config = require('./gulp.config')(); //require and execute it | |
var $ = require('gulp-load-plugins')({lazy: true}); | |
var paths = { | |
js : ['*.js', 'src/**/*.js'] | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//npm i gulp -D | |
//in gulpfile.js | |
var gulp = require('gulp'); | |
//npm i gulp-jshint gulp-jscs -D | |
//in gulpfile | |
var jshint = require('gulp-jshint'); | |
var jscs = require('gulp-jscs'); | |
//$ npm i -D gulp-util | |
var util = require('gulp-util'); | |
//$ npm i -D gulp-print |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var jshint = require('gulp-jshint'); | |
var jscs = require('gulp-jscs'); | |
var nodemon = require('gulp-nodemon'); | |
var jsFiles = ['*.js', 'src/**/*.js']; | |
gulp.task('style', function() { | |
return gulp.src(jsFiles) | |
.pipe(jshint()) |
NewerOlder