gems:
group :test, :development do gem 'rspec-rails' gem 'simplecov' gem 'factory_girl_rails' gem 'faker' gem 'shoulda-matchers'
adding this to your javasript will allow you to initiate the debugger on demand, no matter where you arein your code by entering into the console window.ohNo | |
var window.ohNo = function(){ | |
debugger; | |
}; | |
genius! |
read up on RVM - https://rvm.io/
stuff I gotta read
Interview
express or happy <- node frameworks
meteor <- full stack framework
Why would you use Rails rather than another framework? | |
Ruby is a powerful yet simple programming language, but to build an app using Ruby on it's own would still be extremely time-consuming and difficult. Using a framework makes it possible to create an application or website in a very short time as most of the common tasks are already taken care of. | |
There are a number of Ruby frameworks to choose from, such as Sinatra (more a library than an actual framework but so what?) or Padrino but Rails provides a robust full-stack framework that makes it quick and easy to build scalable apps, and is particularly helpful if you are developing with a large team of people. | |
Some of the main advantages of Rails: | |
- Rails uses an MVC pattern | |
- Rails encourages use of RESTful routes |
#install coffee script in just one directory
npm install coffee-script
add a file to play with in coffee
touch hello.coffee
now to get coffee running
firstly - yuck.
-- connect to server in terminal:
Enter password when prompted. If you need to chnage your password, at this point, enter:
##Ultimate Angular Bootstrap Wishlist
###Services### #####Generic $http services
Covering full suite of rest calls and wired to chain success/error in correct manner with promises. eg.
POST(url/endpoint, data, successFunction, failFunction, name)
Where: name = simple variable to be injetced into success/fail error alerts.