35 |
--------------------------------------------------------------------------------
/client/src/assets/images/angular.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/angular.png
--------------------------------------------------------------------------------
/client/src/assets/images/bootstrap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/bootstrap.png
--------------------------------------------------------------------------------
/client/src/assets/images/browsersync.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/browsersync.png
--------------------------------------------------------------------------------
/client/src/assets/images/gulp.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/gulp.png
--------------------------------------------------------------------------------
/client/src/assets/images/jasmine.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/jasmine.png
--------------------------------------------------------------------------------
/client/src/assets/images/karma.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/karma.png
--------------------------------------------------------------------------------
/client/src/assets/images/protractor.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/protractor.png
--------------------------------------------------------------------------------
/client/src/assets/images/ui-bootstrap.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/ui-bootstrap.png
--------------------------------------------------------------------------------
/client/src/assets/images/yeoman.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/assets/images/yeoman.png
--------------------------------------------------------------------------------
/client/src/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/client/src/favicon.ico
--------------------------------------------------------------------------------
/client/src/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | angularRails
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/config.ru:
--------------------------------------------------------------------------------
1 | # This file is used by Rack-based servers to start the application.
2 |
3 | require ::File.expand_path('../config/environment', __FILE__)
4 | run Rails.application
5 |
--------------------------------------------------------------------------------
/config/application.rb:
--------------------------------------------------------------------------------
1 | require File.expand_path('../boot', __FILE__)
2 |
3 | require 'rails/all'
4 |
5 | # Require the gems listed in Gemfile, including any gems
6 | # you've limited to :test, :development, or :production.
7 | Bundler.require(*Rails.groups)
8 |
9 | module RailsAngular
10 | class Application < Rails::Application
11 | # Settings in config/environments/* take precedence over those specified here.
12 | # Application configuration should go into files in config/initializers
13 | # -- all .rb files in that directory are automatically loaded.
14 |
15 | # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
16 | # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
17 | # config.time_zone = 'Central Time (US & Canada)'
18 |
19 | # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20 | # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21 | # config.i18n.default_locale = :de
22 |
23 | # Do not swallow errors in after_commit/after_rollback callbacks.
24 | config.active_record.raise_in_transactional_callbacks = true
25 | end
26 | end
27 |
--------------------------------------------------------------------------------
/config/boot.rb:
--------------------------------------------------------------------------------
1 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
2 |
3 | require 'bundler/setup' # Set up gems listed in the Gemfile.
4 |
--------------------------------------------------------------------------------
/config/database.yml:
--------------------------------------------------------------------------------
1 | # PostgreSQL. Versions 8.2 and up are supported.
2 | #
3 | # Install the pg driver:
4 | # gem install pg
5 | # On OS X with Homebrew:
6 | # gem install pg -- --with-pg-config=/usr/local/bin/pg_config
7 | # On OS X with MacPorts:
8 | # gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
9 | # On Windows:
10 | # gem install pg
11 | # Choose the win32 build.
12 | # Install PostgreSQL and put its /bin directory on your path.
13 | #
14 | # Configure Using Gemfile
15 | # gem 'pg'
16 | #
17 | default: &default
18 | adapter: postgresql
19 | encoding: unicode
20 | # For details on connection pooling, see rails configuration guide
21 | # http://guides.rubyonrails.org/configuring.html#database-pooling
22 | pool: 5
23 |
24 | development:
25 | <<: *default
26 | database: railsAngular_development
27 |
28 | # The specified database role being used to connect to postgres.
29 | # To create additional roles in postgres see `$ createuser --help`.
30 | # When left blank, postgres will use the default role. This is
31 | # the same name as the operating system user that initialized the database.
32 | #username: railsAngular
33 |
34 | # The password associated with the postgres role (username).
35 | #password:
36 |
37 | # Connect on a TCP socket. Omitted by default since the client uses a
38 | # domain socket that doesn't need configuration. Windows does not have
39 | # domain sockets, so uncomment these lines.
40 | #host: localhost
41 |
42 | # The TCP port the server listens on. Defaults to 5432.
43 | # If your server runs on a different port number, change accordingly.
44 | #port: 5432
45 |
46 | # Schema search path. The server defaults to $user,public
47 | #schema_search_path: myapp,sharedapp,public
48 |
49 | # Minimum log levels, in increasing order:
50 | # debug5, debug4, debug3, debug2, debug1,
51 | # log, notice, warning, error, fatal, and panic
52 | # Defaults to warning.
53 | #min_messages: notice
54 |
55 | # Warning: The database defined as "test" will be erased and
56 | # re-generated from your development database when you run "rake".
57 | # Do not set this db to the same as development or production.
58 | test:
59 | <<: *default
60 | database: railsAngular_test
61 |
62 | # As with config/secrets.yml, you never want to store sensitive information,
63 | # like your database password, in your source code. If your source code is
64 | # ever seen by anyone, they now have access to your database.
65 | #
66 | # Instead, provide the password as a unix environment variable when you boot
67 | # the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database
68 | # for a full rundown on how to provide these environment variables in a
69 | # production deployment.
70 | #
71 | # On Heroku and other platform providers, you may have a full connection URL
72 | # available as an environment variable. For example:
73 | #
74 | # DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase"
75 | #
76 | # You can use this database configuration with:
77 | #
78 | # production:
79 | # url: <%= ENV['DATABASE_URL'] %>
80 | #
81 | production:
82 | <<: *default
83 | database: railsAngular_production
84 | username: railsAngular
85 | password: <%= ENV['RAILSANGULAR_DATABASE_PASSWORD'] %>
86 |
--------------------------------------------------------------------------------
/config/environment.rb:
--------------------------------------------------------------------------------
1 | # Load the Rails application.
2 | require File.expand_path('../application', __FILE__)
3 |
4 | # Initialize the Rails application.
5 | Rails.application.initialize!
6 |
--------------------------------------------------------------------------------
/config/environments/development.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # In the development environment your application's code is reloaded on
5 | # every request. This slows down response time but is perfect for development
6 | # since you don't have to restart the web server when you make code changes.
7 | config.cache_classes = false
8 |
9 | # Do not eager load code on boot.
10 | config.eager_load = false
11 |
12 | # Show full error reports and disable caching.
13 | config.consider_all_requests_local = true
14 | config.action_controller.perform_caching = false
15 |
16 | # Don't care if the mailer can't send.
17 | config.action_mailer.raise_delivery_errors = false
18 |
19 | # Print deprecation notices to the Rails logger.
20 | config.active_support.deprecation = :log
21 |
22 | # Raise an error on page load if there are pending migrations.
23 | config.active_record.migration_error = :page_load
24 |
25 | # Debug mode disables concatenation and preprocessing of assets.
26 | # This option may cause significant delays in view rendering with a large
27 | # number of complex assets.
28 | config.assets.debug = true
29 |
30 | # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31 | # yet still be able to expire them through the digest params.
32 | config.assets.digest = true
33 |
34 | # Adds additional error checking when serving assets at runtime.
35 | # Checks for improperly declared sprockets dependencies.
36 | # Raises helpful error messages.
37 | config.assets.raise_runtime_errors = true
38 |
39 | # Raises error for missing translations
40 | # config.action_view.raise_on_missing_translations = true
41 | end
42 |
--------------------------------------------------------------------------------
/config/environments/production.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # Code is not reloaded between requests.
5 | config.cache_classes = true
6 |
7 | # Eager load code on boot. This eager loads most of Rails and
8 | # your application in memory, allowing both threaded web servers
9 | # and those relying on copy on write to perform better.
10 | # Rake tasks automatically ignore this option for performance.
11 | config.eager_load = true
12 |
13 | # Full error reports are disabled and caching is turned on.
14 | config.consider_all_requests_local = false
15 | config.action_controller.perform_caching = true
16 |
17 | # Enable Rack::Cache to put a simple HTTP cache in front of your application
18 | # Add `rack-cache` to your Gemfile before enabling this.
19 | # For large-scale production use, consider using a caching reverse proxy like
20 | # NGINX, varnish or squid.
21 | # config.action_dispatch.rack_cache = true
22 |
23 | # Disable serving static files from the `/public` folder by default since
24 | # Apache or NGINX already handles this.
25 | config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26 |
27 | # Compress JavaScripts and CSS.
28 | config.assets.js_compressor = :uglifier
29 | # config.assets.css_compressor = :sass
30 |
31 | # Do not fallback to assets pipeline if a precompiled asset is missed.
32 | config.assets.compile = false
33 |
34 | # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35 | # yet still be able to expire them through the digest params.
36 | config.assets.digest = true
37 |
38 | # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39 |
40 | # Specifies the header that your server uses for sending files.
41 | # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42 | # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43 |
44 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45 | # config.force_ssl = true
46 |
47 | # Use the lowest log level to ensure availability of diagnostic information
48 | # when problems arise.
49 | config.log_level = :debug
50 |
51 | # Prepend all log lines with the following tags.
52 | # config.log_tags = [ :subdomain, :uuid ]
53 |
54 | # Use a different logger for distributed setups.
55 | # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56 |
57 | # Use a different cache store in production.
58 | # config.cache_store = :mem_cache_store
59 |
60 | # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61 | # config.action_controller.asset_host = 'http://assets.example.com'
62 |
63 | # Ignore bad email addresses and do not raise email delivery errors.
64 | # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65 | # config.action_mailer.raise_delivery_errors = false
66 |
67 | # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68 | # the I18n.default_locale when a translation cannot be found).
69 | config.i18n.fallbacks = true
70 |
71 | # Send deprecation notices to registered listeners.
72 | config.active_support.deprecation = :notify
73 |
74 | # Use default logging formatter so that PID and timestamp are not suppressed.
75 | config.log_formatter = ::Logger::Formatter.new
76 |
77 | # Do not dump schema after migrations.
78 | config.active_record.dump_schema_after_migration = false
79 | end
80 |
--------------------------------------------------------------------------------
/config/environments/test.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # The test environment is used exclusively to run your application's
5 | # test suite. You never need to work with it otherwise. Remember that
6 | # your test database is "scratch space" for the test suite and is wiped
7 | # and recreated between test runs. Don't rely on the data there!
8 | config.cache_classes = true
9 |
10 | # Do not eager load code on boot. This avoids loading your whole application
11 | # just for the purpose of running a single test. If you are using a tool that
12 | # preloads Rails for running tests, you may have to set it to true.
13 | config.eager_load = false
14 |
15 | # Configure static file server for tests with Cache-Control for performance.
16 | config.serve_static_files = true
17 | config.static_cache_control = 'public, max-age=3600'
18 |
19 | # Show full error reports and disable caching.
20 | config.consider_all_requests_local = true
21 | config.action_controller.perform_caching = false
22 |
23 | # Raise exceptions instead of rendering exception templates.
24 | config.action_dispatch.show_exceptions = false
25 |
26 | # Disable request forgery protection in test environment.
27 | config.action_controller.allow_forgery_protection = false
28 |
29 | # Tell Action Mailer not to deliver emails to the real world.
30 | # The :test delivery method accumulates sent emails in the
31 | # ActionMailer::Base.deliveries array.
32 | config.action_mailer.delivery_method = :test
33 |
34 | # Randomize the order test cases are executed.
35 | config.active_support.test_order = :random
36 |
37 | # Print deprecation notices to the stderr.
38 | config.active_support.deprecation = :stderr
39 |
40 | # Raises error for missing translations
41 | # config.action_view.raise_on_missing_translations = true
42 | end
43 |
--------------------------------------------------------------------------------
/config/initializers/filter_parameter_logging.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Configure sensitive parameters which will be filtered from the log file.
4 | Rails.application.config.filter_parameters += [:password]
5 |
--------------------------------------------------------------------------------
/config/initializers/secret_token.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Your secret key for verifying the integrity of signed cookies.
4 | # If you change this key, all old signed cookies will become invalid!
5 |
6 | # Make sure the secret is at least 30 characters and all random,
7 | # no regular words or you'll be exposed to dictionary attacks.
8 | # You can use `rake secret` to generate a secure secret key.
9 |
10 | # Make sure your secret_key_base is kept private
11 | # if you're sharing your code publicly.
12 |
13 | # Although this is not needed for an api-only application, rails4
14 | # requires secret_key_base or secret_token to be defined, otherwise an
15 | # error is raised.
16 | # Using secret_token for rails3 compatibility. Change to secret_key_base
17 | # to avoid deprecation warning.
18 | # Can be safely removed in a rails3 api-only application.
19 | RailsAngular::Application.config.secret_token = '3a66773a67ac2086fd1062c1c20ee4b05fe6debb1818f1ef14e042952d509915000504d3dbd68ae52043739f506922808805f9815a3df419f591dfde30c5f4d0'
20 |
--------------------------------------------------------------------------------
/config/initializers/wrap_parameters.rb:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 | #
3 | # This file contains settings for ActionController::ParamsWrapper
4 |
5 | # Enable parameter wrapping for JSON.
6 | # ActiveSupport.on_load(:action_controller) do
7 | # wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
8 | # end
9 |
10 | # To enable root element in JSON for ActiveRecord objects.
11 | # ActiveSupport.on_load(:active_record) do
12 | # self.include_root_in_json = true
13 | # end
14 |
--------------------------------------------------------------------------------
/config/locales/en.yml:
--------------------------------------------------------------------------------
1 | # Files in the config/locales directory are used for internationalization
2 | # and are automatically loaded by Rails. If you want to use locales other
3 | # than English, add the necessary files in this directory.
4 | #
5 | # To use the locales, use `I18n.t`:
6 | #
7 | # I18n.t 'hello'
8 | #
9 | # In views, this is aliased to just `t`:
10 | #
11 | # <%= t('hello') %>
12 | #
13 | # To use a different locale, set it with `I18n.locale`:
14 | #
15 | # I18n.locale = :es
16 | #
17 | # This would use the information in config/locales/es.yml.
18 | #
19 | # To learn more, please read the Rails Internationalization guide
20 | # available at http://guides.rubyonrails.org/i18n.html.
21 |
22 | en:
23 | hello: "Hello world"
24 |
--------------------------------------------------------------------------------
/config/routes.rb:
--------------------------------------------------------------------------------
1 | Rails.application.routes.draw do
2 |
3 | scope '/api' do
4 | namespace :v1, defaults: { format: :json } do
5 |
6 | resources :articles, except: [:new, :edit]
7 |
8 | end
9 | end
10 |
11 | # The priority is based upon order of creation: first created -> highest priority.
12 | # See how all your routes lay out with "rake routes".
13 |
14 | # You can have the root of your site routed with "root"
15 | # root 'welcome#index'
16 |
17 | # Example of regular route:
18 | # get 'products/:id' => 'catalog#view'
19 |
20 | # Example of named route that can be invoked with purchase_url(id: product.id)
21 | # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
22 |
23 | # Example resource route (maps HTTP verbs to controller actions automatically):
24 | # resources :products
25 |
26 | # Example resource route with options:
27 | # resources :products do
28 | # member do
29 | # get 'short'
30 | # post 'toggle'
31 | # end
32 | #
33 | # collection do
34 | # get 'sold'
35 | # end
36 | # end
37 |
38 | # Example resource route with sub-resources:
39 | # resources :products do
40 | # resources :comments, :sales
41 | # resource :seller
42 | # end
43 |
44 | # Example resource route with more complex sub-resources:
45 | # resources :products do
46 | # resources :comments
47 | # resources :sales do
48 | # get 'recent', on: :collection
49 | # end
50 | # end
51 |
52 | # Example resource route with concerns:
53 | # concern :toggleable do
54 | # post 'toggle'
55 | # end
56 | # resources :posts, concerns: :toggleable
57 | # resources :photos, concerns: :toggleable
58 |
59 | # Example resource route within a namespace:
60 | # namespace :admin do
61 | # # Directs /admin/products/* to Admin::ProductsController
62 | # # (app/controllers/admin/products_controller.rb)
63 | # resources :products
64 | # end
65 | end
66 |
--------------------------------------------------------------------------------
/config/secrets.yml:
--------------------------------------------------------------------------------
1 | # Be sure to restart your server when you modify this file.
2 |
3 | # Your secret key is used for verifying the integrity of signed cookies.
4 | # If you change this key, all old signed cookies will become invalid!
5 |
6 | # Make sure the secret is at least 30 characters and all random,
7 | # no regular words or you'll be exposed to dictionary attacks.
8 | # You can use `rake secret` to generate a secure secret key.
9 |
10 | # Make sure the secrets in this file are kept private
11 | # if you're sharing your code publicly.
12 |
13 | development:
14 | secret_key_base: 92986ecf6925911b787600799764532c8afdff30e8bfa2b534078b8d6bc671d6b7ff41c7cbb51dd77987587eb1d1e2e3643face0abb48716d234c549f270bd14
15 |
16 | test:
17 | secret_key_base: 1f34f702bf43840e8ef3b77f8e0880c52874cfce26cf5a5e2fb08608920e307d5e25fbb93033bba7d7d6517ba8eb5bc250dee378ee4045fb21831dcc477e6698
18 |
19 | # Do not keep production secrets in the repository,
20 | # instead read values from the environment.
21 | production:
22 | secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
23 |
--------------------------------------------------------------------------------
/db/migrate/20150718132359_create_articles.rb:
--------------------------------------------------------------------------------
1 | class CreateArticles < ActiveRecord::Migration
2 | def change
3 | create_table :articles do |t|
4 | t.string :title
5 | t.text :body
6 |
7 | t.timestamps null: false
8 | end
9 | end
10 | end
11 |
--------------------------------------------------------------------------------
/db/schema.rb:
--------------------------------------------------------------------------------
1 | # encoding: UTF-8
2 | # This file is auto-generated from the current state of the database. Instead
3 | # of editing this file, please use the migrations feature of Active Record to
4 | # incrementally modify your database, and then regenerate this schema definition.
5 | #
6 | # Note that this schema.rb definition is the authoritative source for your
7 | # database schema. If you need to create the application database on another
8 | # system, you should be using db:schema:load, not running all the migrations
9 | # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10 | # you'll amass, the slower it'll run and the greater likelihood for issues).
11 | #
12 | # It's strongly recommended that you check this file into your version control system.
13 |
14 | ActiveRecord::Schema.define(version: 20150718132359) do
15 |
16 | # These are extensions that must be enabled in order to support this database
17 | enable_extension "plpgsql"
18 |
19 | create_table "articles", force: :cascade do |t|
20 | t.string "title"
21 | t.text "body"
22 | t.datetime "created_at", null: false
23 | t.datetime "updated_at", null: false
24 | end
25 |
26 | end
27 |
--------------------------------------------------------------------------------
/db/seeds.rb:
--------------------------------------------------------------------------------
1 | # This file should contain all the record creation needed to seed the database with its default values.
2 | # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3 | #
4 | # Examples:
5 | #
6 | # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7 | # Mayor.create(name: 'Emanuel', city: cities.first)
8 |
9 | Article.create(title: 'Test Article',
10 | body: 'A test article. Cool!')
11 | Article.create(title: 'Donald Trump Resigns from Presidential Candidacy',
12 | body: 'Thanks goodness')
13 | Article.create(title: 'Child’s Description Of Heaven During Near-Death Experience Specifically Mentions Book Deal',
14 | body: 'I\'d read it!')
15 | Article.create(title: 'New Poll Finds 74% Of Americans Would Be Comfortable Blaming Female President For Problems',
16 | body: 'Classic.')
17 |
--------------------------------------------------------------------------------
/lib/assets/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/lib/assets/.keep
--------------------------------------------------------------------------------
/lib/tasks/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/lib/tasks/.keep
--------------------------------------------------------------------------------
/log/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/log/.keep
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "angularRails",
3 | "version": "0.0.1",
4 | "dependencies": {},
5 | "scripts": {
6 | "test": "gulp test",
7 | "postinstall": "cd client && bower install --config.interactive=false && gulp build"
8 | },
9 | "dependencies": {
10 | "browser-sync": "~2.7.12",
11 | "browser-sync-spa": "~1.0.2",
12 | "bower": "^1.4.1",
13 | "chalk": "~1.0.0",
14 | "concat-stream": "~1.5.0",
15 | "del": "~1.2.0",
16 | "gulp": "~3.9.0",
17 | "gulp-angular-filesort": "~1.1.1",
18 | "gulp-angular-templatecache": "~1.6.0",
19 | "gulp-autoprefixer": "~2.3.1",
20 | "gulp-csso": "~1.0.0",
21 | "gulp-filter": "~2.0.2",
22 | "gulp-flatten": "~0.0.4",
23 | "gulp-inject": "~1.3.1",
24 | "gulp-jshint": "~1.11.0",
25 | "gulp-load-plugins": "~0.10.0",
26 | "gulp-minify-html": "~1.0.3",
27 | "gulp-ng-annotate": "~1.0.0",
28 | "gulp-protractor": "~1.0.0",
29 | "gulp-rename": "~1.2.2",
30 | "gulp-replace": "~0.5.3",
31 | "gulp-rev": "~5.0.0",
32 | "gulp-rev-replace": "~0.4.2",
33 | "gulp-size": "~1.2.1",
34 | "gulp-sourcemaps": "~1.5.2",
35 | "gulp-uglify": "~1.2.0",
36 | "gulp-useref": "~1.2.0",
37 | "gulp-util": "~3.0.5",
38 | "http-proxy-middleware": "^0.2.0",
39 | "jshint-stylish": "~2.0.0",
40 | "karma": "~0.12.36",
41 | "karma-angular-filesort": "~0.1.0",
42 | "karma-jasmine": "~0.3.5",
43 | "karma-ng-html2js-preprocessor": "~0.1.2",
44 | "karma-phantomjs-launcher": "~0.2.0",
45 | "lodash": "~3.9.3",
46 | "main-bower-files": "~2.8.0",
47 | "merge-stream": "~0.1.7",
48 | "require-dir": "~0.3.0",
49 | "uglify-save-license": "~0.4.1",
50 | "wiredep": "~2.2.2",
51 | "wrench": "~1.5.8"
52 | },
53 | "engines": {
54 | "node": "0.12.7",
55 | "npm": "2.12.1"
56 | },
57 | "cacheDirectories": [
58 | "node_modules",
59 | "./client/bower_components"
60 | ]
61 | }
62 |
--------------------------------------------------------------------------------
/test/controllers/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/test/controllers/.keep
--------------------------------------------------------------------------------
/test/controllers/articles_controller_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class ArticlesControllerTest < ActionController::TestCase
4 | setup do
5 | @article = articles(:one)
6 | end
7 |
8 | test "should get index" do
9 | get :index
10 | assert_response :success
11 | assert_not_nil assigns(:articles)
12 | end
13 |
14 | test "should create article" do
15 | assert_difference('Article.count') do
16 | post :create, article: { body: @article.body, title: @article.title }
17 | end
18 |
19 | assert_response 201
20 | end
21 |
22 | test "should show article" do
23 | get :show, id: @article
24 | assert_response :success
25 | end
26 |
27 | test "should update article" do
28 | put :update, id: @article, article: { body: @article.body, title: @article.title }
29 | assert_response 204
30 | end
31 |
32 | test "should destroy article" do
33 | assert_difference('Article.count', -1) do
34 | delete :destroy, id: @article
35 | end
36 |
37 | assert_response 204
38 | end
39 | end
40 |
--------------------------------------------------------------------------------
/test/fixtures/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/test/fixtures/.keep
--------------------------------------------------------------------------------
/test/fixtures/articles.yml:
--------------------------------------------------------------------------------
1 | # Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
2 |
3 | one:
4 | title: MyString
5 | body: MyText
6 |
7 | two:
8 | title: MyString
9 | body: MyText
10 |
--------------------------------------------------------------------------------
/test/helpers/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/test/helpers/.keep
--------------------------------------------------------------------------------
/test/integration/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/test/integration/.keep
--------------------------------------------------------------------------------
/test/mailers/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/test/mailers/.keep
--------------------------------------------------------------------------------
/test/models/.keep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/grantgeorge/railsAngularTutorial/c7391d365e1eca823fbab0fada7622213d6a5e2c/test/models/.keep
--------------------------------------------------------------------------------
/test/models/article_test.rb:
--------------------------------------------------------------------------------
1 | require 'test_helper'
2 |
3 | class ArticleTest < ActiveSupport::TestCase
4 | test "the truth" do
5 | assert true
6 | end
7 | end
8 |
--------------------------------------------------------------------------------
/test/test_helper.rb:
--------------------------------------------------------------------------------
1 | ENV['RAILS_ENV'] ||= 'test'
2 | require File.expand_path('../../config/environment', __FILE__)
3 | require 'rails/test_help'
4 |
5 | class ActiveSupport::TestCase
6 | # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
7 | fixtures :all
8 |
9 | # Add more helper methods to be used by all tests here...
10 | end
11 |
--------------------------------------------------------------------------------