课程信息
4.7
18 个评分
7 个审阅
专项课程

第 6 门课程(共 6 门)

100% 在线

100% 在线

立即开始,按照自己的计划学习。
可灵活调整截止日期

可灵活调整截止日期

根据您的日程表重置截止日期。
完成时间(小时)

完成时间大约为58 小时

建议:6 hours/week...
可选语言

英语(English)

字幕:英语(English)

您将获得的技能

Ruby On RailsAngularjsWeb Development
专项课程

第 6 门课程(共 6 门)

100% 在线

100% 在线

立即开始,按照自己的计划学习。
可灵活调整截止日期

可灵活调整截止日期

根据您的日程表重置截止日期。
完成时间(小时)

完成时间大约为58 小时

建议:6 hours/week...
可选语言

英语(English)

字幕:英语(English)

教学大纲 - 您将从这门课程中学到什么

1
完成时间(小时)
完成时间为 7 小时

Technical Architecture and API Development Setup

In this module, we will start your journey into being part of an end-to-end application development as a Rails/AngularJS fullstack developer intern. You will learn the technical architecture and software requirements of the targeted application you will be a part of developing. You will also get a chance to shake off any rust that may have accumulated on your Rails development skills. As a part of the technical architecture, you will learn of the various layers, technologies, libraries, and services used in the development, deployment, and operation of the targeted application. You will get an early sense that this course is "no joke" when it comes to challenges, but you will be shown a path through most of them. You may be able to skip the application installation until the end if you are using the same computer that you used in the first five (5) courses of the specialization. None of the new software installations are required for this module -- but are included in a single lesson for modularity. You will develop an end-to-end, API-to-Database, resource solution for ActiveRecord/RDBMS and Mongoid/MongoDB using Rails scaffold generator. You will establish a Git repository for this work, provision database and Rails resources on the internet for staging and production deployments, and deploy your solution to the Heroku to be accessible from the Internet. If you are a seasoned Rails developer and competent with ActiveRecord, Mongoid, and Heroku -- you may want to initially skip the review lectures, review the final Git commit for module one (1), and try your hand at the optional assignment at the end. Aside from the technical architecture lesson, this module is mostly a quick breeze through many of the topics of courses one (1) through three (3). A similar, small-scale review of courses four (4) through five (5) will be covered in the next module. Please enjoy! Also, if you have not done so already I recommend that you read the Course Overview description which provides additional context on what you will be doing in this course. To access, please click the Resources tab on the left navigation. ...
Reading
21 个视频 (总计 220 分钟), 1 个测验
Video21 个视频
Module 1 Introduction3分钟
Technical and Deployment Architecture (Part 1)11分钟
Technical and Deployment Architecture (Part 2)14分钟
Technical and Deployment Architecture (Part 3)14分钟
Development Environment Setup4分钟
Software Installation: MacOS13分钟
Software Installation: Specifics for Windows29分钟
Software Installation: Specifics for Linux and Docker15分钟
Application Setup6分钟
Application Setup Demo10分钟
Example Requirements10分钟
RDBMS-backed Resource12分钟
MongoDB-backed Resource13分钟
Regression Testing7分钟
Web Service Finishing Touches3分钟
CORS6分钟
Alternate Web Servers4分钟
Gemfile Summary8分钟
Provisioning mLab MongoDB6分钟
API Deployment13分钟
2
完成时间(小时)
完成时间为 6 小时

SPA Development Setup

In this module, you will develop an AngularJS web application for the purposes of managing a resource hosted by a Rails server. As a part of that, you will learn the details of the Rails Asset Pipeline for hosting web applications, key features to address when moving from development to production, and different deployment options that you have within this course. You will complete an end-to-end AngularJS/Rails application to manage the resource on the Rails server you developed and deployed as a part of module one (1). This application will consist of AngularJS 1.x, UI-Router, and ngResource modules as well as a sample service, directive, controller, and web page to manage the resource. You will learn the details of the Rails Asset Pipeline as an option for deploying web assets like AngularJS web applications and what features it provides and how to conform to its conventions to get those features. Novice and intermediate developers are encouraged to use the Asset Pipeline approach in this module and throughout the course for simplicity and consistency with the examples in follow-on modules as this will be the development approach used by all follow-on modules. You will optionally learn how to leverage node package manager, bower, and gulp to establish an external development environment that parallels many of the capabilities provided by Asset Pipeline (e.g., minification to reduce bandwidth requirements and concatenation to reduce the number of separate server HTTP connections). You may leverage this environment to form a deployment to Github, like performed during courses four (4) and five (5) except with deployment considerations addressed. Although there is a functional gulpfile developed during the module, you are encouraged to treat this as an optional topic. Additionally, you can optionally learn how to use a hybrid of external development and Rails by using Rails as a web server and deploying your web application to the public directory and forming a single development tree and deployment artifact to Heroku. Like the pure external development approach, you are encouraged to treat this approach as an optional topic. ...
Reading
29 个视频 (总计 208 分钟), 1 个测验
Video29 个视频
Web Resources and Asset Pipeline Background12分钟
Asset Pipeline Packaging11分钟
Asset Pipeline Deployment2分钟
External Web Client Packaging with Gulp7分钟
Gulp Development Setup4分钟
Gulp Installation7分钟
Gulpfile Task Basics4分钟
Gulpfile Definitions7分钟
Gulp Build Tasks9分钟
Gulp Development Runtime Tasks8分钟
Gulp Distribution Tasks6分钟
External Web Client Deployment4分钟
External Web Client Rails Packaging12分钟
External Web Client Rails Deployment3分钟
Merging UI Branches6分钟
SPA Application Module13分钟
SPA Application Module External Packaging6分钟
Sample Resource CRUD Module5分钟
Sample Resource Service Skeleton8分钟
Sample Resource CRUD Controller Skeleton4分钟
Sample Directive and Template Page11分钟
Sample CSS Styling5分钟
List Resource Instances3分钟
Create Resource Instance8分钟
Select and Update/Delete Resource Instance6分钟
Sample Application in External Environments2分钟
SPA Application Deployments8分钟
CORS Revisited7分钟
3
完成时间(小时)
完成时间为 6 小时

Testing

In this module, you will learn how to development model, request, and feature specs using RSpec and to leverage gems like DatabaseCleaner, FactoryGirl, and Faker in building those specs. You will also learn how to DRY their tests using RSpec shared_contexts and shared_examples as well as Ruby modules for helper methods. All use of tests within the capstone will be "integration-style" tests, going to the database and back. We will not have time to implement pure unit tests for individual components. For model testing, we will focus tests on factories, query scopes, relationships, and facade methods interacting directly with PostgreSQL and MongoDB databases. We will address the general purpose and custom techniques for managing the database state during cleanup. For API testing, we will form a hefty set of RSpec shared_contexts and Ruby helper methods for the request specs that will take care of the details of many CRUD behaviors and other tedious, repetitive tasks. The API is not only easier to test than the Web UI, it is a first-class external interface deserving of separate testing. During test coverage, you will learn internal Rails error handling techniques that will provide the web client a proper and sane web reply in the face of errors. For Web UI testing, we will introduce Capybara for building feature tests and the role of the RackTest, Selenium, and Poltergeist/PhantomJS drivers for implementing UI testing with Javascript. Although Capybara provides a nice interface for expressing Web UI tests, the asynchronous nature of Web UIs make them extremely difficult to test without well thought out decisions during development. This course has a special emphasis on teaching you how to develop automated integration tests at all levels of the architecture, including the Web UIs. It is recommended that you review this module and sample further test-related lectures in follow-on modules to get a good understanding of how testing can best be leveraged in a full stack development (within constraints of the course). Except for the seasoned RSpec and Capybara user, there is no shortcut through this module....
Reading
32 个视频 (总计 244 分钟), 1 个测验
Video32 个视频
RSpec DSL11分钟
Spec Anatomy Part 1: Database Interaction and Blocks6分钟
Spec Anatomy Part 2: Thinning Examples5分钟
Spec Anatomy Part 3: Pending Examples and Lazy/Eager Let Blocks6分钟
RSpec with Mongoid9分钟
DatabaseCleaner with ActiveRecord6分钟
DatabaseCleaner and SharedContexts5分钟
DatabaseCleaner with Mongoid5分钟
DatabaseCleaner Optimizations5分钟
FactoryGirl and Faker6分钟
FactoryGirl Factories10分钟
FactoryGirl and Faker Data9分钟
Request Specs Overview5分钟
First Request Spec5分钟
API GET Resource Instances and Helper ApiModule9分钟
API GET Instance and Not Found Error Reporting7分钟
API Create and Wrapped Parameters8分钟
API Update/Delete and DRYing with Ruby Metaprogramming7分钟
DRYing API Tests with RSpec Shared Examples8分钟
More Shared Examples with API GET Instance7分钟
Capybara Setup6分钟
Selenium Webdriver8分钟
Debugging Capybara/Selenium Tests2分钟
Poltergeist/PhantomJS Headless Webdriver6分钟
Capybara Testing with Docker (Optional Lecture)14分钟
Capybara Usage10分钟
Capybara Waits6分钟
Foo Feature Spec: Foo List10分钟
Foo Feature Spec: Create Foo8分钟
Foo UI Helper Module8分钟
Code Coverage3分钟
4
完成时间(小时)
完成时间为 13 小时

Security and the Photo Tourist Domain Model

In this module, you will learn how to implement authenticated interfaces providing role-based authorization required to protect web resources. You will also practice these techniques while implementing the core resources for the Photo Tourist application. You will learn how to manage user accounts with the Devise Ruby gem and how to implement token-based authentication with the devise_token_auth Ruby gem and ng-token-auth AngularJS module. With this starting point -- the student is on a straightforward path to implementing external authentication (e.g., via Facebook, Twitter, Github) through OAuth2 (not part of the capstone). Additionally, how to implement end-to-end account registration from the UI, through the API, to Devise through the intermediate libraries and implement an authenticated session component in Angular and make that available through a Navbar based on a Bootstrap implementation. You will learn how to add role-based security to their resources with the aid of the Pundit Ruby gem to determine access not only on authentication -- but also on assigned roles for the anonymous and authenticated user. The content and code-along exercises provide opportunities to implement role-based access checks within the Web UI to help guide a user to making authorized choices appropriate for their assigned roles. And how to write optimized SQL queries to implement compound, custom resource payloads for efficient expression of related object information -- including mapping roles to resources accessed by specific users. ************* This is a very long module with very important material relative to security and the targeted application. It will likely be broken up into two (2) or more modules in the future. You should budget extra time for this and treat it as if it were two (2) modules for the amount of time spent. Yes -- that means the novice developer could spend upwards to forty-eight (48) hours going through the lectures, performing the optional code-alongs, and completing the mandatory assignment. *************. The mandatory assignment for this module will be posted shortly after the last lectures are posted and there is a Git commit available in Github for that lecture. ...
Reading
49 个视频 (总计 496 分钟), 1 个测验
Video49 个视频
BTA Interview9分钟
Token-based Authentication8分钟
Server: Devise Token Auth Setup8分钟
API: Authentication Requirements4分钟
API: Account Signup5分钟
API: Account Signup Failures and Error Payloads5分钟
Server: Devise Setup Errors Discovered/Fixed7分钟
API: Authenticated Access Control4分钟
API: Authenticate6分钟
API: Authenticated Access8分钟
API: DRY Token Authentication Specs5分钟
Server: Domain Model and Authn Policy4分钟
Server: Image (Metadata) and Authn Policy15分钟
Server: Things and Authn Policy5分钟
DB: ThingImages Model15分钟
DB: Custom SQL and Query Scopes8分钟
API: ThingImages Resource and Authn Policy12分钟
API: ThingImages Resource and Authn Specs7分钟
UI: ng-token-auth Setup and Authentication Requirements8分钟
UI: Signup15分钟
UI: Signup Error Handling and Form Feedback11分钟
UI: Navbar and Authn Session13分钟
UI: Successful Login13分钟
UI: Logout and Persisted Session13分钟
UI: Login Error Handling and Styling10分钟
UI: Authenticated Access12分钟
DB: Populating Sample Data with Rakefile10分钟
UI: Images Page and Image Selector Component14分钟
UI: Display Image Metadata6分钟
UI: Image Authz Directive10分钟
UI: Image Authz Policy Enforcement10分钟
UI: Authenticated Things Management2分钟
UI: Displaying Thing/Image Links14分钟
UI: Creating Thing/Image Links12分钟
UI: Managing Thing/Image Links14分钟
Server: Rule-based Authorization with Pundit Gem15分钟
Server: Role Authorization Requirements5分钟
Server: User Roles13分钟
Server: Image Authorization Policy Enforcement10分钟
DB: Image Authorization Policy Enforcement Queries14分钟
Server: Thing Authorization Policy Enforcement14分钟
Server: Thing/Image Links Authorization Policy Enforcement15分钟
API: WhoAmI Service with User Roles8分钟
UI: Authorization Architecture9分钟
UI: Authz Service14分钟
UI: Authorization Policy Services12分钟
UI: Image Authorization9分钟
UI: Thing Authorization8分钟
4.7
7 个审阅Chevron Right

热门审阅

创建者 EAApr 15th 2017

Great Course Jim has really thought me more than enough to get my career started. All a student has to do is just study.

创建者 KTMay 4th 2017

Excellent course. Mr. Stafford is a very good teacher.

讲师

Avatar

Jim Stafford

Adjunct Professor, Graduate Computer Science
Computer Science, Whiting School of Engineering

关于 Johns Hopkins University

The mission of The Johns Hopkins University is to educate its students and cultivate their capacity for life-long learning, to foster independent and original research, and to bring the benefits of discovery to the world....

关于 Ruby on Rails Web Development 专项课程

This Specialization covers the fundamentals of web development with Ruby on Rails. You’ll learn everything you need to develop your own web application using Ruby on Rails, SQL and NoSQL databases, and HTML/CSS, and Javascript. We will also touch on advanced topics such as security, services using HTTP/RESTful access patterns, and user access and user experience from multiple device platforms. In the final Capstone Project, you’ll apply your skills to develop a web application that hosts uploaded photos and displays them using a map....
Ruby on Rails Web Development

常见问题

  • 注册以便获得证书后,您将有权访问所有视频、测验和编程作业(如果适用)。只有在您的班次开课之后,才可以提交和审阅同学互评作业。如果您选择在不购买的情况下浏览课程,可能无法访问某些作业。

  • 您注册课程后,将有权访问专项课程中的所有课程,并且会在完成课程后获得证书。您的电子课程证书将添加到您的成就页中,您可以通过该页打印您的课程证书或将其添加到您的领英档案中。如果您只想阅读和查看课程内容,可以免费旁听课程。

还有其他问题吗?请访问 学生帮助中心